summaryrefslogtreecommitdiff
path: root/drivers/arm/ws2812.h
diff options
context:
space:
mode:
authorJoel Challis <git@zvecr.com>2019-11-07 13:10:29 +0000
committerGitHub <noreply@github.com>2019-11-07 13:10:29 +0000
commit1ea0cac998cab60c8b2aa64ba4bd995acbece4b4 (patch)
treeb0d66dee00794334767db6bec00dbf8c5576b28f /drivers/arm/ws2812.h
parentb9610091f520f7f20d20964101ae28f7b5f77de2 (diff)
ARM - ws2812 bitbang (#7173)
* Initial ARM bitbang ws2812 driver * Unify chibios platform to run rgblight_task * Remove 'avr only' comments from ws2812 docs * Remove 'avr only' comments from ws2812 docs * Unify chibios platform to run rgblight_task - review comments * Remove debug flags from keymap * Add comments from review * Add defines for STM32L0XX * Attempt to get arm ws2812 working on multiple gcc versions
Diffstat (limited to 'drivers/arm/ws2812.h')
-rw-r--r--drivers/arm/ws2812.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/arm/ws2812.h b/drivers/arm/ws2812.h
new file mode 100644
index 0000000000..bf5c9fd0f1
--- /dev/null
+++ b/drivers/arm/ws2812.h
@@ -0,0 +1,17 @@
+#pragma once
+
+#include "quantum/color.h"
+
+/* User Interface
+ *
+ * Input:
+ * ledarray: An array of GRB data describing the LED colors
+ * number_of_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
+ * - Wait 50�s to reset the LEDs
+ */
+void ws2812_setleds(LED_TYPE *ledarray, uint16_t number_of_leds);
+void ws2812_setleds_rgbw(LED_TYPE *ledarray, uint16_t number_of_leds);