Function quick reference
Some sensors generate events when the sensors change. It is always possible to query the state of a sensor through a set of query functions.
- sensors_event_button_down - the button has been pressed
- sensors_event_button_up - the button has been depressed
- sensors_event_humidity - a change in humidity has been detected
- sensors_event_light - a change in light has been detected
- sensors_event_motion - motion has been detected
- sensors_event_sound - sound has been detected
- sensors_event_temperature - temperature has changed
- sensors_event_vibration - vibration has been detected
- sensors_battery() - query the battery voltage level
- sensors_button() - query the on-board button
- sensors_mic() - query the microphone
- sensors_pir() - query the passive IR sensor (motion detector)
- sensors_radiosignal() - query the radio signal strength
- sensors_temp() - query the temperature sensor
- sensors_vib() - query the vibration sensor
- leds_on() - turn LEDs on
- leds_off() - turn LEDs off
- leds_invert() - invert LEDs
- leds_blink() - blink all LEDs
Contiki supports two types of timers: event timers and simple timers. Event timers generates an event when the timer expires, whereas the simple timer has to be actively queried to check when it has expired.
Generated on Wed Jul 6 01:19:06 2005 for Contiki/ESB by
1.3.6