summaryrefslogtreecommitdiffstats
path: root/keyboards/cannonkeys/bluepill/ws2812.h
diff options
context:
space:
mode:
authorAndrew Kannan <andrew.kannan@klaviyo.com>2019-01-30 05:04:20 +0100
committerDrashna Jaelre <drashna@live.com>2019-01-30 05:04:20 +0100
commit7186d1581abbd97d7c76626ae83fc866e85d217c (patch)
tree1a6cf65f38f00f48e1539a8c01418cf770119a37 /keyboards/cannonkeys/bluepill/ws2812.h
parent74fcfd533508d5743a20a7cd7faba404f8fc7cd3 (diff)
downloadqmk_firmware-7186d1581abbd97d7c76626ae83fc866e85d217c.tar.gz
qmk_firmware-7186d1581abbd97d7c76626ae83fc866e85d217c.tar.xz
Moving cannonkeys boards to one place, eeprom fix (#4999)
* Move boards to cannonkeys and share resources * Share common files between cannonkey boards * Fix ortho60 keymap * update LED numbers * Add RGB keys to Ortho60 and Ortho48 * Add Backlight control to default layout Ortho60 and 48 * Remove unnecessary ws2812.c SRC from rules.mk
Diffstat (limited to 'keyboards/cannonkeys/bluepill/ws2812.h')
-rw-r--r--keyboards/cannonkeys/bluepill/ws2812.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/keyboards/cannonkeys/bluepill/ws2812.h b/keyboards/cannonkeys/bluepill/ws2812.h
new file mode 100644
index 000000000..3b61ddcfa
--- /dev/null
+++ b/keyboards/cannonkeys/bluepill/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);