diff --git a/keyboards/zompi/config.h b/keyboards/zompi/config.h index f0ca1e2cb9..5d987153dd 100644 --- a/keyboards/zompi/config.h +++ b/keyboards/zompi/config.h @@ -43,3 +43,9 @@ //#define OLED_FONT_H "keyboards/mlego/m65/lib/glcdfont.c" #endif +/* RGB settings. */ +#define RGBLED_NUM 3 + #define RGBLED_SPLIT { 18, 18 } +# define RGB_DI_PIN GP14 +# define DRIVER_LED_TOTAL 3 + diff --git a/keyboards/zompi/info.json b/keyboards/zompi/info.json index 8174dfe671..2d2d6a5f60 100644 --- a/keyboards/zompi/info.json +++ b/keyboards/zompi/info.json @@ -9,8 +9,8 @@ "enabled": true, "rotary": [ { - "pin_a": "GP14", - "pin_b": "GP15", + "pin_a": "GP24", + "pin_b": "GP25", "resolution": 4 } ] @@ -26,7 +26,6 @@ "mousekey": true, "nkro": true, "oled": true, - "rgblight": false, "wpm": true }, "layouts": { diff --git a/keyboards/zompi/rules.mk b/keyboards/zompi/rules.mk index 4897736403..7f451fb890 100644 --- a/keyboards/zompi/rules.mk +++ b/keyboards/zompi/rules.mk @@ -7,16 +7,20 @@ BOOTLOADER = rp2040 # Build Options # change yes to no to disable # -RGB_MATRIX_ENABLE = no # Enable keyboard RGB matrix (do not use together with RGBLIGHT_ENABLE) -#RGB_MATRIX_DRIVER = WS2812 # RGB matrix driver support +RGB_MATRIX_ENABLE = yes # Enable keyboard RGB matrix (do not use together with RGBLIGHT_ENABLE) +RGB_MATRIX_DRIVER = WS2812 # RGB matrix driver support +WS2812_DRIVER = vendor SPLIT_KEYBOARD = yes LTO_ENABLE = yes AUDIO_SUPPORTED = no -RGB_MATRIX_SUPPORTED = no -RGBLIGHT_SUPPORTED = no +RGB_MATRIX_SUPPORTED = yes +RGBLIGHT_ENABLE = yes +##BACKLIGHT_ENABLE = yes SERIAL_DRIVER = vendor LAYOUTS = split_3x5_3 OLED_DRIVER = SSD1306 + # Project specific files +#QUANTUM_LIB_SRC += spi_master.c diff --git a/keyboards/zompi/zompi.c b/keyboards/zompi/zompi.c index a91861d2ce..bf5931c88b 100644 --- a/keyboards/zompi/zompi.c +++ b/keyboards/zompi/zompi.c @@ -139,3 +139,15 @@ bool encoder_update_user(uint8_t index, bool clockwise) { } 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} + }, { + + } };