diff options
| author | Joshua Diamond <josh@windowoffire.com> | 2020-06-05 05:01:47 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-05 02:01:47 -0700 |
| commit | d03bc3a9c185f97d3813758e7f6df7c879f42ad0 (patch) | |
| tree | 8b5a0b3aeede0aed5ab52061b8a129f808525526 /users/spidey3/init.c | |
| parent | c12e429da28399004dddcf2c67f7cb4bca8d28e4 (diff) | |
| download | qmk_firmware-d03bc3a9c185f97d3813758e7f6df7c879f42ad0.tar.gz qmk_firmware-d03bc3a9c185f97d3813758e7f6df7c879f42ad0.zip | |
Major enhancements to spidey3 keymaps and userspace (#9261)
* Add Chrome OS specific keys to 75_ansi/spidey3
* Clean up duplicative settings in rules.mk
* Refactor spidey3 userspace to use rgb layer blink
* Blink green on wakeup
* Improve _FN layer indicator
* Glyph transformation modes: wide, script, fraktur, and enclosed characters
* Add spider unicode glyph
* Fix compile error when NO_ACTION_ONESHOT
* Add a few more emoji
* Further refinement of lighting layer usage
* Fix reversed yes/no ack
* Lighting layers override RGB off
* Fix missing wide and incorrect script numbers
* Add LOL and surprise emoji
* Add missing break in switch statement
* Trim firmware size
* Use usage ID definitions in report.h
* Some minor whitespace cleanup
* Disable some unused features to reduce firmware size
* Print version on startup
* Seed rand() on first keystroke
* Add a key to immediately sleep CrOS
* Switch to Bootmagic Lite
* Trim down firmware size a little bit more
* Make RGBLIGHT_MODE_TWINKLE+4 my default
* Scan rate debug / fix version printing
Delay printing version on startup (console may not be ready)
Better scan rate reporting
* Disable locking caps, etc. to save more space
* Enable LTO
* Better seed for rand()
* Set MAX_LAYER for some performance improvement
* Another scan rate improvement
* Set manufacturer
* New startup animation
* Add GUI lock for F-keys (for CrOS)
* Add visual indication for glyph replacement and F-keys GUI lock
* Some cleanup; run cformat on spidey3 userspace
* Cycle between debug verbosity options
* Fix disable RGB Lighting after wakeup on Mac
Diffstat (limited to 'users/spidey3/init.c')
| -rw-r--r-- | users/spidey3/init.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/users/spidey3/init.c b/users/spidey3/init.c index b92394609..273c2b289 100644 --- a/users/spidey3/init.c +++ b/users/spidey3/init.c | |||
| @@ -1,30 +1,28 @@ | |||
| 1 | #include "spidey3.h" | 1 | #include "spidey3.h" |
| 2 | 2 | ||
| 3 | void keyboard_post_init_user(void) { | 3 | void keyboard_post_init_user(void) { |
| 4 | print("keyboard_post_init_user\n"); | ||
| 5 | uprintf("\tdebug_enable=%u\n", debug_enable); | ||
| 6 | #ifdef RGBLIGHT_ENABLE | 4 | #ifdef RGBLIGHT_ENABLE |
| 7 | keyboard_post_init_user_rgb(); | 5 | keyboard_post_init_user_rgb(); |
| 8 | #endif | 6 | #endif |
| 9 | } | 7 | } |
| 10 | 8 | ||
| 11 | void eeconfig_init_user(void) { | 9 | void eeconfig_init_user(void) { |
| 12 | print("eeconfig_init_user\n"); | 10 | print("eeconfig_init_user\n"); |
| 13 | set_single_persistent_default_layer(_BASE); | 11 | set_single_persistent_default_layer(_BASE); |
| 14 | #ifdef UNICODEMAP_ENABLE | 12 | #ifdef UNICODEMAP_ENABLE |
| 15 | eeconfig_init_user_unicode(); | 13 | eeconfig_init_user_unicode(); |
| 16 | #endif | 14 | #endif |
| 17 | 15 | ||
| 18 | #ifdef RGBLIGHT_ENABLE | 16 | #ifdef RGBLIGHT_ENABLE |
| 19 | eeconfig_init_user_rgb(); | 17 | eeconfig_init_user_rgb(); |
| 20 | #endif | 18 | #endif |
| 21 | } | 19 | } |
| 22 | 20 | ||
| 23 | void shutdown_user() { | 21 | void shutdown_user() { |
| 24 | #ifdef RGBLIGHT_ENABLE | 22 | #ifdef RGBLIGHT_ENABLE |
| 25 | clear_rgb_layers(); | 23 | clear_rgb_layers(); |
| 26 | rgblight_enable(); | 24 | rgblight_enable(); |
| 27 | rgblight_mode_noeeprom(RGBLIGHT_MODE_STATIC_LIGHT); | 25 | rgblight_mode_noeeprom(RGBLIGHT_MODE_STATIC_LIGHT); |
| 28 | rgblight_sethsv_noeeprom(HSV_RED); | 26 | rgblight_sethsv_noeeprom(HSV_RED); |
| 29 | #endif | 27 | #endif |
| 30 | } | 28 | } |
