diff options
author | XScorpion2 <[email protected]> | 2022-01-21 21:51:12 -0600 |
---|---|---|
committer | GitHub <[email protected]> | 2022-01-21 19:51:12 -0800 |
commit | ad702096a97677eab5c1931d6f0d4a51e1a564a5 (patch) | |
tree | 51ddb8df5f1f2c18ee86ba8e5045b4f955a9d112 /keyboards/rgbkb/sol3/sol3.c | |
parent | b45a037c7edcd9c1cfadceb69ed51e7d42aa58c1 (diff) | |
download | qmk_firmware-ad702096a97677eab5c1931d6f0d4a51e1a564a5.tar.gz qmk_firmware-ad702096a97677eab5c1931d6f0d4a51e1a564a5.zip |
[Keyboard] Sol 3 Keyboard from RGBKB (#15687)
Co-authored-by: Ryan <[email protected]>
Co-authored-by: Franklyn Tackitt <[email protected]>
Diffstat (limited to 'keyboards/rgbkb/sol3/sol3.c')
-rw-r--r-- | keyboards/rgbkb/sol3/sol3.c | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/keyboards/rgbkb/sol3/sol3.c b/keyboards/rgbkb/sol3/sol3.c new file mode 100644 index 0000000000..97ae5bc5de --- /dev/null +++ b/keyboards/rgbkb/sol3/sol3.c @@ -0,0 +1,38 @@ +/* + * ---------------------------------------------------------------------------- + * "THE BEER-WARE LICENSE" (Revision 42): + * <https://github.com/Legonut> wrote this file. As long as you retain this + * notice you can do whatever you want with this stuff. If we meet some day, and + * you think this stuff is worth it, you can buy me a beer in return. David Rauseo + * ---------------------------------------------------------------------------- + */ + +#include "sol3.h" +#include "eeconfig.h" +#include "audio.h" +#include <transactions.h> + +extern audio_config_t audio_config; + +void keyboard_post_init_kb(void) { + touch_encoder_init(); + transaction_register_rpc(TOUCH_ENCODER_SYNC, touch_encoder_slave_sync); + transaction_register_rpc(RGB_MENU_SYNC, rgb_menu_slave_sync); + keyboard_post_init_user(); +} + +void eeconfig_init_kb(void) { + // Reset Keyboard EEPROM value to blank, rather than to a set value + eeconfig_update_kb(0); + + audio_config.raw = eeconfig_read_audio(); + audio_config.clicky_enable = false; + eeconfig_update_audio(audio_config.raw); + + eeconfig_init_user(); +} + +void housekeeping_task_kb(void) { + touch_encoder_update(TOUCH_ENCODER_SYNC); + rgb_menu_update(RGB_MENU_SYNC); +} |