diff options
| author | Nick Brassel <nick@tzarc.org> | 2024-08-26 10:01:57 +1000 |
|---|---|---|
| committer | Nick Brassel <nick@tzarc.org> | 2024-08-26 10:01:57 +1000 |
| commit | 5d76c5280dc0aff398cdce19fa54d0e0725c418d (patch) | |
| tree | 40026340f0d524a6006f18f01ef988e15d271075 /drivers/led/apa102.h | |
| parent | e6a898e3eea3521d3f0497ee26937d5269d78fb7 (diff) | |
| parent | 81dcf2b547bacc42bd9cf8ccaccd3d7164e69926 (diff) | |
Merge branch 'develop'
Diffstat (limited to 'drivers/led/apa102.h')
| -rw-r--r-- | drivers/led/apa102.h | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/drivers/led/apa102.h b/drivers/led/apa102.h index 5e2f78658b..42f1344f0c 100644 --- a/drivers/led/apa102.h +++ b/drivers/led/apa102.h @@ -32,17 +32,8 @@ #define APA102_MAX_BRIGHTNESS 31 void apa102_init(void); - -/* User Interface - * - * Input: - * start_led: An array of GRB data describing the LED colors - * num_leds: The number of LEDs to write - * - * The functions will perform the following actions: - * - Set the data-out pin as output - * - Send out the LED data - */ -void apa102_setleds(rgb_led_t *start_led, uint16_t num_leds); +void apa102_set_color(uint16_t index, uint8_t red, uint8_t green, uint8_t blue); +void apa102_set_color_all(uint8_t red, uint8_t green, uint8_t blue); +void apa102_flush(void); void apa102_set_brightness(uint8_t brightness); |
