diff options
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 000000000..3b61ddcfa --- /dev/null +++ b/keyboards/handwired/practice60/ws2812.h | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include "hal.h" | ||
| 4 | #include "rgblight_types.h" | ||
| 5 | |||
| 6 | |||
| 7 | void set_leds_color_rgb(LED_TYPE color); | ||
| 8 | void set_led_color_rgb(LED_TYPE color, int pos); | ||
| 9 | void leds_init(void); | ||
| 10 | |||
| 11 | |||
| 12 | // This is what users will use to interface with this | ||
| 13 | void ws2812_setleds(LED_TYPE *ledarray, uint16_t number_of_leds); | ||
| 14 | void ws2812_setleds_rgbw(LED_TYPE *ledarray, uint16_t number_of_leds); | ||
| 15 | |||
| 16 | |||
| 17 | void WS2812_init(void); | ||
| 18 | void WS2812_set_color( uint8_t index, uint8_t red, uint8_t green, uint8_t blue ); | ||
| 19 | void WS2812_set_color_all( uint8_t red, uint8_t green, uint8_t blue ); | ||
| 20 | void WS2812_send_colors(void); | ||
