Add RGB pixel and brightness APIs, update Blinkt example (#1210)
* Added API to get the RGB pixel and brightness values from the blinkt interface. * Fixed Channel object for Color object present-value which does not use coercion. * Added API to the color-RGB library to convert from ASCII CSS color name to X,Y and brightness. * Converted the Blinkt example app to use the basic-server. Added a default color name command line option --color that accepts CSS color names. Set the color and brightness at startup. * Added vacancy timer for lights using timer object defaulted to 30m and started at startup.
This commit is contained in:
@@ -9,8 +9,13 @@
|
||||
|
||||
void blinkt_clear(void);
|
||||
void blinkt_set_pixel_uint32(uint8_t led, uint32_t color);
|
||||
|
||||
void blinkt_set_pixel(uint8_t led, uint8_t r, uint8_t g, uint8_t b);
|
||||
void blinkt_get_pixel(uint8_t led, uint8_t *r, uint8_t *g, uint8_t *b);
|
||||
|
||||
uint8_t blinkt_get_pixel_brightness(uint8_t led);
|
||||
void blinkt_set_pixel_brightness(uint8_t led, uint8_t brightness);
|
||||
|
||||
uint32_t blinkt_rgbb(uint8_t r, uint8_t g, uint8_t b, uint8_t brightness);
|
||||
uint32_t blinkt_rgb(uint8_t r, uint8_t g, uint8_t b);
|
||||
void blinkt_stop(void);
|
||||
|
||||
Reference in New Issue
Block a user