|
Contiki 3.x
|
Driver to control a bright LED strip powered at 3VDC, drawing power directly from the battery power supply. More...
Files | |
| file | led-strip.c |
| Driver for a bright LED strip. | |
| file | led-strip.h |
| Header file for a bright LED strip driver. | |
Functions | |
| void | led_strip_config (void) |
| Init function for the bright LED strip driver. More... | |
| int | led_strip_switch (uint8_t val) |
| Function to turn ON/OFF the LED strip. More... | |
| int | led_strip_get (void) |
| Function to get the LED strip current state. More... | |
Driver to control a bright LED strip powered at 3VDC, drawing power directly from the battery power supply.
An example on how to adapt 12VDC LED strips to 3VDC is provided at http://www.hackster.io/zolertia
| void led_strip_config | ( | void | ) |
Init function for the bright LED strip driver.
The LED strip driver allows to lighten up any application using up to 4 LEDs 3VDC-powered per strip The function is set to power OFF the LEDs as default, it should be called from the contiki-main initialization process.
Definition at line 62 of file led-strip.c.
References GPIO_SET_OUTPUT, GPIO_SET_PIN, and GPIO_SOFTWARE_CONTROL.
| int led_strip_get | ( | void | ) |
Function to get the LED strip current state.
Definition at line 92 of file led-strip.c.
References GPIO_READ_PIN.
| int led_strip_switch | ( | uint8_t | val | ) |
Function to turn ON/OFF the LED strip.
| val | Set ON/OFF (LED_STRIP_ON or LED_STRIP_OFF) |
Definition at line 75 of file led-strip.c.
References GPIO_WRITE_PIN.
1.8.6