]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/cannonkeys/stm32f072/ws2812.h
Usbasploader bootloader option addition (#6304)
[qmk_firmware.git] / keyboards / cannonkeys / stm32f072 / ws2812.h
1 #pragma once
2
3 #include "hal.h"
4 #include "color.h"
5
6 void set_leds_color_rgb(LED_TYPE color);
7 void set_led_color_rgb(LED_TYPE color, int pos);
8 void leds_init(void);
9
10
11  // This is what users will use to interface with this
12 void ws2812_setleds(LED_TYPE *ledarray, uint16_t number_of_leds);
13 void ws2812_setleds_rgbw(LED_TYPE *ledarray, uint16_t number_of_leds);
14
15
16 void WS2812_init(void);
17 void WS2812_set_color( uint8_t index, uint8_t red, uint8_t green, uint8_t blue );
18 void WS2812_set_color_all( uint8_t red, uint8_t green, uint8_t blue );
19 void WS2812_send_colors(void);