diff options
author | Andrew Kannan <andrew.kannan@klaviyo.com> | 2019-01-28 19:40:02 -0500 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-01-28 16:40:02 -0800 |
commit | 0f507f01696eae0e8fe808d17a19db3f6d9e2ce4 (patch) | |
tree | 986c78fbb09b6bf5e33df6c28158e6877af64960 /keyboards/handwired/practice60/ws2812.h | |
parent | d9120412d3d81fc688a7e5346711cf716518dc34 (diff) |
Practice60 RGB and PWM Backlight (#4929)
* Update Practice60 to enable RGB via SPI DMA and use PWM backlight breathing
* Correct stm32f103c8t6 flash size in eeprom definition
* Remove unused files and improve ifdef checks
* Update quantum/rgblight.c
Co-Authored-By: awkannan <andrew.kannan@klaviyo.com>
* Update quantum/rgblight.c
Co-Authored-By: awkannan <andrew.kannan@klaviyo.com>
* EEPROM implementation fix and updated p60 code
* Update define
* Remove dead code
* Update keymap to remove test key
* Update keymap again
Diffstat (limited to 'keyboards/handwired/practice60/ws2812.h')
-rw-r--r-- | keyboards/handwired/practice60/ws2812.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/keyboards/handwired/practice60/ws2812.h b/keyboards/handwired/practice60/ws2812.h new file mode 100644 index 0000000000..3b61ddcfa9 --- /dev/null +++ b/keyboards/handwired/practice60/ws2812.h @@ -0,0 +1,20 @@ +#pragma once + +#include "hal.h" +#include "rgblight_types.h" + + +void set_leds_color_rgb(LED_TYPE color); +void set_led_color_rgb(LED_TYPE color, int pos); +void leds_init(void); + + + // This is what users will use to interface with this +void ws2812_setleds(LED_TYPE *ledarray, uint16_t number_of_leds); +void ws2812_setleds_rgbw(LED_TYPE *ledarray, uint16_t number_of_leds); + + +void WS2812_init(void); +void WS2812_set_color( uint8_t index, uint8_t red, uint8_t green, uint8_t blue ); +void WS2812_set_color_all( uint8_t red, uint8_t green, uint8_t blue ); +void WS2812_send_colors(void); |