Skip to content

Conversation

@peterjc
Copy link
Owner

@peterjc peterjc commented Jul 18, 2025

peterjc added 3 commits July 18, 2025 17:05
Was failing to compile with:

```
Compiling: quantum/rgblight/rgblight_drivers.c                                                     In file included from quantum/rgblight/rgblight_drivers.c:7:
drivers/led/ws2812.h:60: error: "WS2812_LED_COUNT" redefined [-Werror]
 #    define WS2812_LED_COUNT RGBLIGHT_LED_COUNT
 
In file included from <command-line>:
./keyboards/tutte_coxeter_36k/config.h:4: note: this is the location of the previous definition
 #define WS2812_LED_COUNT 1
```
@peterjc
Copy link
Owner Author

peterjc commented Jul 18, 2025

Compiling: platforms/chibios/drivers/ws2812_bitbang.c                                              platforms/chibios/drivers/ws2812_bitbang.c:18:14: error: #error "Please use `vendor` WS2812 driver for RP2040"
 #            error "Please use `vendor` WS2812 driver for RP2040"
              ^~~~~
 [ERRORS]

@peterjc
Copy link
Owner Author

peterjc commented Jul 18, 2025

Success with default red, need the switches wired up to try anything more complicated like layer changes.

IMG_2560

@peterjc
Copy link
Owner Author

peterjc commented Jul 18, 2025

Compiling: quantum/rgblight/rgblight.c                                                             quantum/rgblight/rgblight.c: In function 'eeconfig_update_rgblight_default':
quantum/rgblight/rgblight.c:185:54: error: expected expression before ';' token
     rgblight_config.mode      = RGBLIGHT_DEFAULT_MODE;
                                                      ^
 [ERRORS]

@peterjc
Copy link
Owner Author

peterjc commented Jul 18, 2025

Close in favour of #9

@peterjc peterjc closed this Jul 18, 2025
@peterjc peterjc reopened this Jul 19, 2025
@peterjc
Copy link
Owner Author

peterjc commented Jul 19, 2025

Compiling: quantum/keymap_introspection.c                                                          In file included from quantum/keymap_introspection.c:9:
/__w/qmk_userspace/qmk_userspace/keyboards/tutte_coxeter_36k/keymaps/vial/keymap.c:33:7: error: unknown type name 'rgblight_segment_t'
 const rgblight_segment_t PROGMEM my_capslock_layer[] = RGBLIGHT_LAYER_SEGMENTS(
       ^~~~~~~~~~~~~~~~~~
/__w/qmk_userspace/qmk_userspace/keyboards/tutte_coxeter_36k/keymaps/vial/keymap.c:33:56: error: implicit declaration of function 'RGBLIGHT_LAYER_SEGMENTS'; did you mean 'RGBLIGHT_LED_COUNT'? [-Werror=implicit-function-declaration]
 const rgblight_segment_t PROGMEM my_capslock_layer[] = RGBLIGHT_LAYER_SEGMENTS(
                                                        ^~~~~~~~~~~~~~~~~~~~~~~
                                                        RGBLIGHT_LED_COUNT
/__w/qmk_userspace/qmk_userspace/keyboards/tutte_coxeter_36k/keymaps/vial/keymap.c:34:5: error: expected expression before '{' token
     {1, 1, HSV_BLUE}       // Light 1 LEDs, starting with LED 1
     ^
/__w/qmk_userspace/qmk_userspace/keyboards/tutte_coxeter_36k/keymaps/vial/keymap.c:37:7: error: unknown type name 'rgblight_segment_t'
 const rgblight_segment_t PROGMEM my_layer1_layer[] = RGBLIGHT_LAYER_SEGMENTS(
       ^~~~~~~~~~~~~~~~~~
/__w/qmk_userspace/qmk_userspace/keyboards/tutte_coxeter_36k/keymaps/vial/keymap.c:38:5: error: expected expression before '{' token
     {1, 1, HSV_CYAN}
     ^
/__w/qmk_userspace/qmk_userspace/keyboards/tutte_coxeter_36k/keymaps/vial/keymap.c:37:54: error: invalid initializer
 const rgblight_segment_t PROGMEM my_layer1_layer[] = RGBLIGHT_LAYER_SEGMENTS(
                                                      ^~~~~~~~~~~~~~~~~~~~~~~
/__w/qmk_userspace/qmk_userspace/keyboards/tutte_coxeter_36k/keymaps/vial/keymap.c:41:7: error: unknown type name 'rgblight_segment_t'
 const rgblight_segment_t PROGMEM my_layer2_layer[] = RGBLIGHT_LAYER_SEGMENTS(
       ^~~~~~~~~~~~~~~~~~
/__w/qmk_userspace/qmk_userspace/keyboards/tutte_coxeter_36k/keymaps/vial/keymap.c:42:5: error: expected expression before '{' token
     {1, 1, HSV_PURPLE}
     ^
/__w/qmk_userspace/qmk_userspace/keyboards/tutte_coxeter_36k/keymaps/vial/keymap.c:41:54: error: invalid initializer
 const rgblight_segment_t PROGMEM my_layer2_layer[] = RGBLIGHT_LAYER_SEGMENTS(
                                                      ^~~~~~~~~~~~~~~~~~~~~~~
/__w/qmk_userspace/qmk_userspace/keyboards/tutte_coxeter_36k/keymaps/vial/keymap.c:45:7: error: unknown type name 'rgblight_segment_t'
 const rgblight_segment_t PROGMEM my_layer3_layer[] = RGBLIGHT_LAYER_SEGMENTS(
       ^~~~~~~~~~~~~~~~~~
/__w/qmk_userspace/qmk_userspace/keyboards/tutte_coxeter_36k/keymaps/vial/keymap.c:46:5: error: expected expression before '{' token
     {1, 1, HSV_GREEN}
     ^
/__w/qmk_userspace/qmk_userspace/keyboards/tutte_coxeter_36k/keymaps/vial/keymap.c:45:54: error: invalid initializer
 const rgblight_segment_t PROGMEM my_layer3_layer[] = RGBLIGHT_LAYER_SEGMENTS(
                                                      ^~~~~~~~~~~~~~~~~~~~~~~
/__w/qmk_userspace/qmk_userspace/keyboards/tutte_coxeter_36k/keymaps/vial/keymap.c:51:7: error: unknown type name 'rgblight_segment_t'
 const rgblight_segment_t* const PROGMEM my_rgb_layers[] = RGBLIGHT_LAYERS_LIST(
       ^~~~~~~~~~~~~~~~~~
/__w/qmk_userspace/qmk_userspace/keyboards/tutte_coxeter_36k/keymaps/vial/keymap.c:51:59: error: implicit declaration of function 'RGBLIGHT_LAYERS_LIST'; did you mean 'RGBLIGHT_LED_COUNT'? [-Werror=implicit-function-declaration]
 const rgblight_segment_t* const PROGMEM my_rgb_layers[] = RGBLIGHT_LAYERS_LIST(
                                                           ^~~~~~~~~~~~~~~~~~~~
                                                           RGBLIGHT_LED_COUNT
/__w/qmk_userspace/qmk_userspace/keyboards/tutte_coxeter_36k/keymaps/vial/keymap.c:51:59: error: invalid initializer
/__w/qmk_userspace/qmk_userspace/keyboards/tutte_coxeter_36k/keymaps/vial/keymap.c: In function 'keyboard_post_init_user':
/__w/qmk_userspace/qmk_userspace/keyboards/tutte_coxeter_36k/keymaps/vial/keymap.c:60:5: error: 'rgblight_layers' undeclared (first use in this function); did you mean 'rgblight_wakeup'?
     rgblight_layers = my_rgb_layers;
     ^~~~~~~~~~~~~~~
     rgblight_wakeup
/__w/qmk_userspace/qmk_userspace/keyboards/tutte_coxeter_36k/keymaps/vial/keymap.c:60:5: note: each undeclared identifier is reported only once for each function it appears in
/__w/qmk_userspace/qmk_userspace/keyboards/tutte_coxeter_36k/keymaps/vial/keymap.c:60:5: error: statement with no effect [-Werror=unused-value]
cc1: all warnings being treated as errors
 [ERRORS]

@peterjc
Copy link
Owner Author

peterjc commented Jul 19, 2025

Cyan layer 0 worked, key map not setup so no way to test layer changing code. Realized this was overriding the Caps Lock
IMG_2578

@peterjc
Copy link
Owner Author

peterjc commented Jul 19, 2025

Working now - layer 0 gets default red, caps lock blue. Layer changing untested.

@peterjc
Copy link
Owner Author

peterjc commented Aug 3, 2025

Closing in favour of #9 (or nothing).

@peterjc peterjc closed this Aug 3, 2025
@peterjc peterjc deleted the rgb branch August 3, 2025 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants