More Formatting
This commit is contained in:
parent
c76fbc4c3f
commit
c33570fe96
1 changed files with 7 additions and 7 deletions
|
@ -9,9 +9,9 @@
|
||||||
* led_on sets the leds state to on
|
* led_on sets the leds state to on
|
||||||
* led_off sets the leds state to off
|
* led_off sets the leds state to off
|
||||||
* set_brightness sets thepwm value for the specific led
|
* 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
|
* 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)".
|
* in "Figure 2 Typical Application Circuit (RGB)".
|
||||||
*
|
*
|
||||||
* struct device *dev = device_get_binding("IS31FL3733A");
|
* struct device *dev = device_get_binding("IS31FL3733A");
|
||||||
|
@ -21,13 +21,13 @@
|
||||||
* #define led 1
|
* #define led 1
|
||||||
* uint8_t RGB[3] = (red, green, blue);
|
* uint8_t RGB[3] = (red, green, blue);
|
||||||
* set_color(dev, led, 3, RGB);
|
* 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
|
* 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
|
* 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>
|
#include <drivers/i2c.h>
|
||||||
#include <drivers/led.h>
|
#include <drivers/led.h>
|
||||||
|
|
Loading…
Add table
Reference in a new issue