From 1ea0cac998cab60c8b2aa64ba4bd995acbece4b4 Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Thu, 7 Nov 2019 13:10:29 +0000 Subject: 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 --- keyboards/handwired/onekey/keymaps/rgb/keymap.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 keyboards/handwired/onekey/keymaps/rgb/keymap.c (limited to 'keyboards/handwired/onekey/keymaps/rgb/keymap.c') diff --git a/keyboards/handwired/onekey/keymaps/rgb/keymap.c b/keyboards/handwired/onekey/keymaps/rgb/keymap.c new file mode 100644 index 0000000000..a96c6f3863 --- /dev/null +++ b/keyboards/handwired/onekey/keymaps/rgb/keymap.c @@ -0,0 +1,11 @@ +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + LAYOUT( RGB_MOD ) +}; + +void keyboard_post_init_user(void) { + rgblight_enable_noeeprom(); + rgblight_sethsv_noeeprom_cyan(); + rgblight_mode_noeeprom(RGBLIGHT_MODE_RAINBOW_SWIRL); +} -- cgit v1.2.3