More Formatting
This commit is contained in:
parent
c76fbc4c3f
commit
867f7612db
1 changed files with 6 additions and 6 deletions
|
@ -9,9 +9,9 @@
|
|||
* led_on sets the leds state to on
|
||||
* led_off sets the leds state to off
|
||||
* set_brightness sets thepwm value for the specific led
|
||||
* set_color will set leds based upon a led number and 3
|
||||
* set_color will set leds based upon a led number and 3
|
||||
* values representing RGB this is applicable for uses
|
||||
* where the leds are wired as shown in the datasheet
|
||||
* where the leds are wired as shown in the datasheet
|
||||
* in "Figure 2 Typical Application Circuit (RGB)".
|
||||
*
|
||||
* struct device *dev = device_get_binding("IS31FL3733A");
|
||||
|
@ -21,12 +21,12 @@
|
|||
* #define led 1
|
||||
* uint8_t RGB[3] = (red, green, blue);
|
||||
* set_color(dev, led, 3, RGB);
|
||||
*
|
||||
* This would set the led in position (SW1,CS1) to the value
|
||||
*
|
||||
* This would set the led in position (SW1,CS1) to the value
|
||||
* of red, the led in position (SW2,CS1) to the value of
|
||||
* green, and the led in position (SW3,CS1) to the value of
|
||||
* green, and the led in position (SW3,CS1) to the value of
|
||||
* blue. Before this is ran the 3 corresponding leds need
|
||||
* to be turned on first with the led_on call.
|
||||
* to be turned on first with the led_on call.
|
||||
*/
|
||||
|
||||
#include <drivers/i2c.h>
|
||||
|
|
Loading…
Add table
Reference in a new issue