zompi: leds work

This commit is contained in:
Thomas Haukland 2022-09-03 08:52:40 +02:00
parent ac7864d2b8
commit 886bd2946b
4 changed files with 28 additions and 7 deletions

View File

@ -43,3 +43,9 @@
//#define OLED_FONT_H "keyboards/mlego/m65/lib/glcdfont.c" //#define OLED_FONT_H "keyboards/mlego/m65/lib/glcdfont.c"
#endif #endif
/* RGB settings. */
#define RGBLED_NUM 3
#define RGBLED_SPLIT { 18, 18 }
# define RGB_DI_PIN GP14
# define DRIVER_LED_TOTAL 3

View File

@ -9,8 +9,8 @@
"enabled": true, "enabled": true,
"rotary": [ "rotary": [
{ {
"pin_a": "GP14", "pin_a": "GP24",
"pin_b": "GP15", "pin_b": "GP25",
"resolution": 4 "resolution": 4
} }
] ]
@ -26,7 +26,6 @@
"mousekey": true, "mousekey": true,
"nkro": true, "nkro": true,
"oled": true, "oled": true,
"rgblight": false,
"wpm": true "wpm": true
}, },
"layouts": { "layouts": {

View File

@ -7,16 +7,20 @@ BOOTLOADER = rp2040
# Build Options # Build Options
# change yes to no to disable # change yes to no to disable
# #
RGB_MATRIX_ENABLE = no # Enable keyboard RGB matrix (do not use together with RGBLIGHT_ENABLE) RGB_MATRIX_ENABLE = yes # Enable keyboard RGB matrix (do not use together with RGBLIGHT_ENABLE)
#RGB_MATRIX_DRIVER = WS2812 # RGB matrix driver support RGB_MATRIX_DRIVER = WS2812 # RGB matrix driver support
WS2812_DRIVER = vendor
SPLIT_KEYBOARD = yes SPLIT_KEYBOARD = yes
LTO_ENABLE = yes LTO_ENABLE = yes
AUDIO_SUPPORTED = no AUDIO_SUPPORTED = no
RGB_MATRIX_SUPPORTED = no RGB_MATRIX_SUPPORTED = yes
RGBLIGHT_SUPPORTED = no RGBLIGHT_ENABLE = yes
##BACKLIGHT_ENABLE = yes
SERIAL_DRIVER = vendor SERIAL_DRIVER = vendor
LAYOUTS = split_3x5_3 LAYOUTS = split_3x5_3
OLED_DRIVER = SSD1306 OLED_DRIVER = SSD1306
# Project specific files
#QUANTUM_LIB_SRC += spi_master.c

View File

@ -139,3 +139,15 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
} }
return false; return false;
} }
/* RGB Positioning */
led_config_t g_led_config = { {
{ 0, 1, 2 },
{ 3, 4, 5 },
{ 6, 7, 8 },
{ 9, 10, 11 }
}, {
{ 0, 0 }, { 112, 0 }, { 224, 0}
}, {
} };