diff options
author | Joel Challis <git@zvecr.com> | 2019-11-07 13:10:29 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-07 13:10:29 +0000 |
commit | 1ea0cac998cab60c8b2aa64ba4bd995acbece4b4 (patch) | |
tree | b0d66dee00794334767db6bec00dbf8c5576b28f /keyboards/handwired/onekey/keymaps/rgb | |
parent | b9610091f520f7f20d20964101ae28f7b5f77de2 (diff) | |
download | firmware-1ea0cac998cab60c8b2aa64ba4bd995acbece4b4.tar.gz firmware-1ea0cac998cab60c8b2aa64ba4bd995acbece4b4.tar.bz2 firmware-1ea0cac998cab60c8b2aa64ba4bd995acbece4b4.zip |
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 'keyboards/handwired/onekey/keymaps/rgb')
-rw-r--r-- | keyboards/handwired/onekey/keymaps/rgb/config.h | 4 | ||||
-rw-r--r-- | keyboards/handwired/onekey/keymaps/rgb/keymap.c | 11 | ||||
-rw-r--r-- | keyboards/handwired/onekey/keymaps/rgb/rules.mk | 1 |
3 files changed, 16 insertions, 0 deletions
diff --git a/keyboards/handwired/onekey/keymaps/rgb/config.h b/keyboards/handwired/onekey/keymaps/rgb/config.h new file mode 100644 index 000000000..89e76326b --- /dev/null +++ b/keyboards/handwired/onekey/keymaps/rgb/config.h @@ -0,0 +1,4 @@ +#pragma once + +#define RGBLED_NUM 9 +#define RGBLIGHT_ANIMATIONS diff --git a/keyboards/handwired/onekey/keymaps/rgb/keymap.c b/keyboards/handwired/onekey/keymaps/rgb/keymap.c new file mode 100644 index 000000000..a96c6f386 --- /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); +} diff --git a/keyboards/handwired/onekey/keymaps/rgb/rules.mk b/keyboards/handwired/onekey/keymaps/rgb/rules.mk new file mode 100644 index 000000000..1e3cebb14 --- /dev/null +++ b/keyboards/handwired/onekey/keymaps/rgb/rules.mk @@ -0,0 +1 @@ +RGBLIGHT_ENABLE = yes |