Created
October 13, 2020 15:58
-
-
Save Canorus/c4180c90012b81d31a9b6d87042cd63a to your computer and use it in GitHub Desktop.
soflekeyboard LED
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
/* The way how "handedness" is decided (which half is which), | |
see https://docs.qmk.fm/#/feature_split_keyboard?id=setting-handedness | |
for more options. | |
*/ | |
#define RGB_DI_PIN D3 | |
#define RGBLED_NUM 5 | |
#define RGBLED_SPLIT { 5, 0 } | |
#define RGBLIGHT_ANIMATIONS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OLED_DRIVER_ENABLE = yes | |
ENCODER_ENABLE = yes | |
CONSOLE_ENABLE = yes | |
EXTRAKEY_ENABLE = yes | |
RGBLIGHT_ENABLE = yes | |
SLEEP_LED_ENABLE = no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "sofle.h" | |
void eeconfig_init_kb(void) { | |
#ifdef RGBLIGHT_ENABLE | |
setPinOutput(D3); | |
writePinHigh(D3); | |
rgblight_enable(); // Enable RGB by default | |
rgblight_sethsv(255, 255, 255); // Set default HSV - red hue, full saturation, full brightness | |
#ifdef RGBLIGHT_ANIMATIONS | |
rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default | |
#endif | |
#endif | |
eeconfig_update_kb(0); | |
eeconfig_init_user(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment