2b59aa1a99
* 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.
29 lines
760 B
C
29 lines
760 B
C
/**
|
|
* @file
|
|
* @brief API for Blinkt! daughter board for Raspberry Pi
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
#ifndef BLINKT_H
|
|
#define BLINKT_H
|
|
|
|
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);
|
|
void blinkt_show(void);
|
|
uint8_t blinkt_led_count(void);
|
|
|
|
int blinkt_init(void);
|
|
void blinkt_test_task(void);
|
|
|
|
#endif
|