5.5.14. Managing IR LEDs
The IR LED blocks of the Video Camera Sensor Board can be managed with the function
parameter
selects the illumination level: '0' powers off all LEDs, '1' powers on block 1, '2' powers on block 2 and '3'
IR_block
powers all LEDs.
Example of use:
{
// Power on IR LED block 1
_3G.powerIRLED(1);
}
This function returns nothing.
5.5.15. Managing IR cut filter
The IR cut filter is managed with the function
state of the filer: '0' enables the IR cut filter and '1' disables the filter.
Example of use:
{
// Power on IR LED block 1
_3G.powerIRLED(1);
}
This function returns nothing.
5.5.16. Managing interrupts
Presence sensor allows to generate interrupts in Waspmote. The function
sleep mode, it activates the presence sensor and it waits until the sensor be ready.
The function
disablePIRInterrupt(PIR_state)
selects if the presence sensor it's power off (
sensor to generate interrupts and wake up the 3G/GPRS from sleep mode. When a new interrupt is required use the function
.
enableInterrupt()
These functions return nothing.
The example code showed below use the interrupts functions to take the picture.
selectFilter(filter_state)
must be used when an interrupt occurs. The parameter
is '0') and still active (
PIR_state
-28-
Board configuration and programming
powerIRLED(IR_block)
. The input parameter
enablePIRInterrupt()
is '1'). The function blocks presence
PIR_state
. The input
selects the
filter_state
sets the 3G/GPRS Board in
PIR_state
v4.3
Need help?
Do you have a question about the Waspmote and is the answer not in the manual?