Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate rgblight.pin and RGB_DI_PIN to ws2812.pin #20303

Merged
merged 39 commits into from
Apr 6, 2023
Merged
Show file tree
Hide file tree
Changes from 34 commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
ef7a4af
Add `ws2812.pin` to schema and deprecate `rgblight.pin`
fauxpark Mar 30, 2023
e27cc63
Update docs with new define name
fauxpark Mar 30, 2023
1ea65cc
Update WS2812 drivers with new define name
fauxpark Mar 30, 2023
494fb53
Migrate `rgblight.pin` to `ws2812.pin`
fauxpark Mar 30, 2023
5f70133
Update define in layouts and userspace
fauxpark Mar 30, 2023
e1dd45c
Update define in keymaps
fauxpark Mar 30, 2023
b93a82d
Migrate `RGB_DI_PIN` to `ws2812.pin`, 0-9
fauxpark Mar 31, 2023
510aacf
Migrate `RGB_DI_PIN` to `ws2812.pin`, A
fauxpark Mar 31, 2023
4b653f7
Migrate `RGB_DI_PIN` to `ws2812.pin`, B
fauxpark Mar 31, 2023
852c0a7
Migrate `RGB_DI_PIN` to `ws2812.pin`, C
fauxpark Mar 31, 2023
2b4c179
Migrate `RGB_DI_PIN` to `ws2812.pin`, D
fauxpark Mar 31, 2023
ec9c095
Migrate `RGB_DI_PIN` to `ws2812.pin`, E
fauxpark Mar 31, 2023
f586ce2
Migrate `RGB_DI_PIN` to `ws2812.pin`, F
fauxpark Mar 31, 2023
ee4cebe
Migrate `RGB_DI_PIN` to `ws2812.pin`, G
fauxpark Mar 31, 2023
3a6ce2c
Migrate `RGB_DI_PIN` to `ws2812.pin`, H
fauxpark Mar 31, 2023
507179f
Migrate `RGB_DI_PIN` to `ws2812.pin`, handwired
fauxpark Mar 31, 2023
3938c8f
Migrate `RGB_DI_PIN` to `ws2812.pin`, I
fauxpark Mar 31, 2023
e6d55a2
Migrate `RGB_DI_PIN` to `ws2812.pin`, J
fauxpark Mar 31, 2023
8535609
Migrate `RGB_DI_PIN` to `ws2812.pin`, K
fauxpark Mar 31, 2023
be17730
Migrate `RGB_DI_PIN` to `ws2812.pin`, L
fauxpark Mar 31, 2023
85d6cdf
Migrate `RGB_DI_PIN` to `ws2812.pin`, M
fauxpark Mar 31, 2023
dadc764
Migrate `RGB_DI_PIN` to `ws2812.pin`, N
fauxpark Mar 31, 2023
7e1ead3
Migrate `RGB_DI_PIN` to `ws2812.pin`, O
fauxpark Mar 31, 2023
1c4c4d6
Migrate `RGB_DI_PIN` to `ws2812.pin`, P
fauxpark Mar 31, 2023
0c1b18b
Migrate `RGB_DI_PIN` to `ws2812.pin`, Q
fauxpark Mar 31, 2023
1c4699a
Migrate `RGB_DI_PIN` to `ws2812.pin`, R
fauxpark Mar 31, 2023
8bf5424
Migrate `RGB_DI_PIN` to `ws2812.pin`, S
fauxpark Mar 31, 2023
6001372
Migrate `RGB_DI_PIN` to `ws2812.pin`, T
fauxpark Mar 31, 2023
b61aa39
Migrate `RGB_DI_PIN` to `ws2812.pin`, U
fauxpark Mar 31, 2023
17506af
Migrate `RGB_DI_PIN` to `ws2812.pin`, V
fauxpark Mar 31, 2023
cd3901a
Migrate `RGB_DI_PIN` to `ws2812.pin`, W
fauxpark Mar 31, 2023
e06c04b
Migrate `RGB_DI_PIN` to `ws2812.pin`, X
fauxpark Mar 31, 2023
55fbd22
Migrate `RGB_DI_PIN` to `ws2812.pin`, Y
fauxpark Mar 31, 2023
bda58a4
Migrate `RGB_DI_PIN` to `ws2812.pin`, Z
fauxpark Mar 31, 2023
60c2fc9
Merge branch 'develop' into ws2812-pin
fauxpark Apr 1, 2023
bd96e52
Fix duplicate keys
fauxpark Apr 1, 2023
235f2c5
Merge branch 'develop' into ws2812-pin
fauxpark Apr 3, 2023
20311bf
Merge branch 'develop' into ws2812-pin
fauxpark Apr 4, 2023
5ccb2fb
Merge branch 'develop' into ws2812-pin
fauxpark Apr 5, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion data/mappings/info_config.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
"PS2_DATA_PIN": {"info_key": "ps2.data_pin"},
"RETRO_TAPPING": {"info_key": "tapping.retro", "value_type": "bool"},
"RETRO_TAPPING_PER_KEY": {"info_key": "tapping.retro_per_key", "value_type": "bool"},
"RGB_DI_PIN": {"info_key": "rgblight.pin"},
"RGBLED_NUM": {"info_key": "rgblight.led_count", "value_type": "int"},
"RGBLED_SPLIT": {"info_key": "rgblight.split_count", "value_type": "array.int"},
"RGBLIGHT_LAYER_BLINK": {"info_key": "rgblight.layers.blink", "value_type": "bool"},
Expand Down Expand Up @@ -119,10 +118,12 @@
"USB_MAX_POWER_CONSUMPTION": {"info_key": "usb.max_power", "value_type": "int"},
"USB_POLLING_INTERVAL_MS": {"info_key": "usb.polling_interval", "value_type": "int"},
"USB_SUSPEND_WAKEUP_DELAY": {"info_key": "usb.suspend_wakeup_delay", "value_type": "int"},
"WS2812_DI_PIN": {"info_key": "ws2812.pin"},
"WS2812_I2C_ADDRESS": {"info_key": "ws2812.i2c_address", "value_type": "hex"},
"WS2812_I2C_TIMEOUT": {"info_key": "ws2812.i2c_timeout", "value_type": "int"},

// Items we want flagged in lint
"RGB_DI_PIN": {"info_key": "rgblight.pin", "invalid": true, "replace_with": "WS2812_DI_PIN or APA102_DI_PIN"},
"NO_ACTION_MACRO": {"info_key": "_invalid.no_action_macro", "invalid": true},
"NO_ACTION_FUNCTION": {"info_key": "_invalid.no_action_function", "invalid": true},
"DESCRIPTION": {"info_key": "_invalid.usb_description", "invalid": true},
Expand Down
6 changes: 5 additions & 1 deletion data/schemas/keyboard.jsonschema
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,10 @@
},
"led_count": {"$ref": "qmk.definitions.v1#/unsigned_int"},
"max_brightness": {"$ref": "qmk.definitions.v1#/unsigned_int_8"},
"pin": {"$ref": "qmk.definitions.v1#/mcu_pin"},
"pin": {
"$ref": "qmk.definitions.v1#/mcu_pin",
"$comment": "Deprecated: use ws2812.pin instead"
},
"rgbw": {"type": "boolean"},
"saturation_steps": {"$ref": "qmk.definitions.v1#/unsigned_int"},
"sleep": {"type": "boolean"},
Expand Down Expand Up @@ -709,6 +712,7 @@
"type": "string",
"enum": ["bitbang", "custom", "i2c", "pwm", "spi", "vendor"]
},
"pin": {"$ref": "qmk.definitions.v1#/mcu_pin"},
"i2c_address": {"$ref": "qmk.definitions.v1#/hex_number_2d"},
"i2c_timeout": {"$ref": "qmk.definitions.v1#/unsigned_int"}
}
Expand Down
4 changes: 2 additions & 2 deletions docs/config_options.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ If you define these options you will enable the associated feature, which may in

## RGB Light Configuration

* `#define RGB_DI_PIN D7`
* `#define WS2812_DI_PIN D7`
* pin the DI on the WS2812 is hooked-up to
* `#define RGBLIGHT_LAYERS`
* Lets you define [lighting layers](feature_rgblight.md?id=lighting-layers) that can be toggled on or off. Great for showing the current keyboard layer or caps lock state.
Expand All @@ -233,7 +233,7 @@ If you define these options you will enable the associated feature, which may in
* `#define RGBLIGHT_SPLIT`
* Needed if both halves of the board have RGB LEDs wired directly to the RGB output pin on the controllers instead of passing the output of the left half to the input of the right half
* `#define RGBLED_SPLIT { 6, 6 }`
* number of LEDs connected that are directly wired to `RGB_DI_PIN` on each half of a split keyboard
* number of LEDs connected that are directly wired to the RGB pin on each half of a split keyboard
* First value indicates number of LEDs for left half, second value is for the right half
* When RGBLED_SPLIT is defined, RGBLIGHT_SPLIT is implicitly defined.
* `#define RGBLIGHT_HUE_STEP 12`
Expand Down
2 changes: 1 addition & 1 deletion docs/feature_rgb_matrix.md
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ Configure the hardware via your `config.h`:

```c
// The pin connected to the data pin of the LEDs
#define RGB_DI_PIN D7
#define WS2812_DI_PIN D7
// The number of LEDs connected
#define RGB_MATRIX_LED_COUNT 70
```
Expand Down
14 changes: 7 additions & 7 deletions docs/feature_rgblight.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ RGBLIGHT_DRIVER = APA102

At minimum you must define the data pin your LED strip is connected to, and the number of LEDs in the strip, in your `config.h`. For APA102 LEDs, you must also define the clock pin. If your keyboard has onboard RGB LEDs, and you are simply creating a keymap, you usually won't need to modify these.

|Define |Description |
|---------------|---------------------------------------------------------------------------------------------------------|
|`RGB_DI_PIN` |The pin connected to the data pin of the LEDs (WS2812) |
|`APA102_DI_PIN`|The pin connected to the data pin of the LEDs (APA102) |
|`APA102_CI_PIN`|The pin connected to the clock pin of the LEDs (APA102) |
|`RGBLED_NUM` |The number of LEDs connected |
|`RGBLED_SPLIT` |(Optional) For split keyboards, the number of LEDs connected on each half directly wired to `RGB_DI_PIN` |
|Define |Description |
|---------------|-------------------------------------------------------------------------|
|`WS2812_DI_PIN`|The pin connected to the data pin of the LEDs (WS2812) |
|`APA102_DI_PIN`|The pin connected to the data pin of the LEDs (APA102) |
|`APA102_CI_PIN`|The pin connected to the clock pin of the LEDs (APA102) |
|`RGBLED_NUM` |The number of LEDs connected |
|`RGBLED_SPLIT` |(Optional) For split keyboards, the number of LEDs connected on each half|

Then you should be able to use the keycodes below to change the RGB lighting to your liking.

Expand Down
4 changes: 2 additions & 2 deletions docs/ws2812_driver.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Configure the hardware via your config.h:
```

### SPI
Targeting STM32 boards where WS2812 support is offloaded to an SPI hardware device. The advantage is that the use of DMA offloads processing of the WS2812 protocol from the MCU. `RGB_DI_PIN` for this driver is the configured SPI MOSI pin. Due to the nature of repurposing SPI to drive the LEDs, the other SPI pins, MISO and SCK, **must** remain unused. To configure it, add this to your rules.mk:
Targeting STM32 boards where WS2812 support is offloaded to an SPI hardware device. The advantage is that the use of DMA offloads processing of the WS2812 protocol from the MCU. `WS2812_DI_PIN` for this driver is the configured SPI MOSI pin. Due to the nature of repurposing SPI to drive the LEDs, the other SPI pins, MISO and SCK, **must** remain unused. To configure it, add this to your rules.mk:

```make
WS2812_DRIVER = spi
Expand Down Expand Up @@ -183,7 +183,7 @@ This can be configured for bitbang, PWM and SPI.

Note: This only applies to STM32 boards.

To configure the `RGB_DI_PIN` to open drain configuration add this to your config.h file:
To configure the `WS2812_DI_PIN` to open drain configuration add this to your config.h file:
```c
#define WS2812_EXTERNAL_PULLUP
```
1 change: 0 additions & 1 deletion keyboards/0_sixty/underglow/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@


/* underglow */
#define RGB_DI_PIN B6
#define RGBLED_NUM 24
#define RGBLIGHT_LIMIT_VAL 185 // limit max I to 400mA
#define RGBLIGHT_EFFECT_BREATHING
Expand Down
3 changes: 3 additions & 0 deletions keyboards/0_sixty/underglow/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,8 @@
},
"features": {
"rgblight": true
},
"ws2812": {
"pin": "B6"
}
}
1 change: 0 additions & 1 deletion keyboards/0xcb/1337/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#define TAP_CODE_DELAY 10

#define RGB_DI_PIN D3
#define RGBLED_NUM 4
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
Expand Down
3 changes: 3 additions & 0 deletions keyboards/0xcb/1337/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
"qmk_lufa_bootloader": {
"led": "B0"
},
"ws2812": {
"pin": "D3"
},
"processor": "atmega32u4",
"bootloader": "qmk-dfu",
"matrix_pins": {
Expand Down
2 changes: 0 additions & 2 deletions keyboards/0xcb/splaytoraid/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

#pragma once

#define RGB_DI_PIN D0

#define RGB_MATRIX_LED_COUNT 18
#define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200
#define RGB_MATRIX_DEFAULT_MODE RGB_MATRIX_BREATHING
Expand Down
3 changes: 3 additions & 0 deletions keyboards/0xcb/splaytoraid/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@
{ "flags": 4, "matrix": [0, 3], "x": 163, "y": 64 }
]
},
"ws2812": {
"pin": "D0"
},
"layouts": {
"LAYOUT_36": {
"layout": [
Expand Down
1 change: 0 additions & 1 deletion keyboards/0xcb/tutelpad/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#pragma once

#define RGB_DI_PIN D3 // LED data pin on controller
#define RGBLED_NUM 4 // Number of LEDs connected

#define RGBLIGHT_HUE_STEP 10 // The number of steps to cycle through the hue by
Expand Down
3 changes: 3 additions & 0 deletions keyboards/0xcb/tutelpad/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
"bootmagic": {
"matrix": [1, 0]
},
"ws2812": {
"pin": "D3"
},
"processor": "atmega32u4",
"bootloader": "caterina",
"matrix_pins": {
Expand Down
1 change: 0 additions & 1 deletion keyboards/10bleoledhub/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.*/
#pragma once

#define SSD1306OLED
#define RGB_DI_PIN B7

#define RGBLED_NUM 4

Expand Down
3 changes: 3 additions & 0 deletions keyboards/10bleoledhub/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"pid": "0x7C99",
"device_version": "0.0.1"
},
"ws2812": {
"pin": "B7"
},
"matrix_pins": {
"cols": ["D6", "D7", "B5"],
"rows": ["F0", "F5", "F4", "F6"]
Expand Down
1 change: 0 additions & 1 deletion keyboards/1k/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#pragma once

#define RGBLED_NUM 1
#define RGB_DI_PIN B2

// Save as much space as we can...
#define LAYER_STATE_8BIT
Expand Down
3 changes: 3 additions & 0 deletions keyboards/1k/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"pid": "0x0001",
"device_version": "0.0.1"
},
"ws2812": {
"pin": "B2"
},
"matrix_pins": {
"direct": [
["B0"]
Expand Down
1 change: 0 additions & 1 deletion keyboards/1upkeyboards/1up60hse/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#pragma once

#define RGB_DI_PIN F0
#define RGBLIGHT_EFFECT_BREATHING
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
Expand Down
3 changes: 3 additions & 0 deletions keyboards/1upkeyboards/1up60hse/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
"levels": 5,
"breathing": true
},
"ws2812": {
"pin": "F0"
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"community_layouts": ["60_ansi"],
Expand Down
1 change: 0 additions & 1 deletion keyboards/1upkeyboards/1up60hte/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE

#define RGB_DI_PIN F0
#define RGBLIGHT_EFFECT_BREATHING
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
Expand Down
3 changes: 3 additions & 0 deletions keyboards/1upkeyboards/1up60hte/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
"caps_lock": "B6",
"on_state": 0
},
"ws2812": {
"pin": "F0"
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"layout_aliases": {
Expand Down
1 change: 0 additions & 1 deletion keyboards/1upkeyboards/1up60rgb/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE

#define RGB_DI_PIN E2
#define RGBLIGHT_EFFECT_BREATHING
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
Expand Down
3 changes: 3 additions & 0 deletions keyboards/1upkeyboards/1up60rgb/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
"pin": "B6",
"levels": 5
},
"ws2812": {
"pin": "E2"
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"community_layouts": ["60_ansi", "60_iso", "60_ansi_split_bs_rshift", "60_hhkb"],
Expand Down
1 change: 0 additions & 1 deletion keyboards/1upkeyboards/pi40/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#define OLED_BRIGHTNESS 128
#define OLED_FONT_H "keyboards/1upkeyboards/pi40/lib/glcdfont.c"

#define RGB_DI_PIN GP0
# define RGB_MATRIX_KEYPRESSES // reacts to keypresses
# define RGB_MATRIX_FRAMEBUFFER_EFFECTS
# define RGBLIGHT_LIMIT_VAL 150
Expand Down
1 change: 1 addition & 0 deletions keyboards/1upkeyboards/pi40/grid_v1_1/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"layer_count": 10
},
"ws2812": {
"pin": "GP0",
"driver": "vendor"
},
"features": {
Expand Down
1 change: 1 addition & 0 deletions keyboards/1upkeyboards/pi40/mit_v1_0/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"layer_count": 10
},
"ws2812": {
"pin": "GP0",
"driver": "vendor"
},
"features": {
Expand Down
1 change: 1 addition & 0 deletions keyboards/1upkeyboards/pi40/mit_v1_1/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"layer_count": 10
},
"ws2812": {
"pin": "GP0",
"driver": "vendor"
},
"features": {
Expand Down
1 change: 0 additions & 1 deletion keyboards/1upkeyboards/pi60/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

#define DYNAMIC_KEYMAP_LAYER_COUNT 10

#define RGB_DI_PIN GP17
#define RGB_MATRIX_LED_COUNT 21
//#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
//#define RGB_MATRIX_KEYPRESSES
Expand Down
1 change: 1 addition & 0 deletions keyboards/1upkeyboards/pi60/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"rgblight": false
},
"ws2812": {
"pin": "GP17",
"driver": "vendor"
},
"matrix_pins": {
Expand Down
1 change: 0 additions & 1 deletion keyboards/1upkeyboards/pi60_hse/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


#define DYNAMIC_KEYMAP_LAYER_COUNT 10
#define RGB_DI_PIN GP15
#define RGB_MATRIX_LED_COUNT 16
#define RGBLED_NUM 16
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
Expand Down
1 change: 1 addition & 0 deletions keyboards/1upkeyboards/pi60_hse/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"rgblight": false
},
"ws2812": {
"pin": "GP15",
"driver": "vendor"
},
"matrix_pins": {
Expand Down
2 changes: 0 additions & 2 deletions keyboards/1upkeyboards/pi60_rgb/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

#pragma once


#define RGB_DI_PIN GP19
#define RGB_MATRIX_LED_COUNT 61
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
#define RGB_MATRIX_KEYPRESSES // reacts to keypresses
Expand Down
1 change: 1 addition & 0 deletions keyboards/1upkeyboards/pi60_rgb/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"rgblight": false
},
"ws2812": {
"pin": "GP19",
"driver": "vendor"
},
"matrix_pins": {
Expand Down
1 change: 0 additions & 1 deletion keyboards/1upkeyboards/super16/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#pragma once

#define RGB_DI_PIN D3
# define RGBLED_NUM 16 // Add 12 if attaching the RGB LED ring
# define RGB_MATRIX_LED_COUNT RGBLED_NUM
# ifdef RGBLIGHT_ENABLE
Expand Down
3 changes: 3 additions & 0 deletions keyboards/1upkeyboards/super16/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"pid": "0x5516",
"device_version": "0.0.1"
},
"ws2812": {
"pin": "D3"
},
"matrix_pins": {
"cols": ["D4", "C6", "F6", "F7"],
"rows": ["D1", "D0", "F4", "F5"]
Expand Down
1 change: 0 additions & 1 deletion keyboards/1upkeyboards/super16v2/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#define MOUSEKEY_MOVE_DELTA 25

#define RGB_DI_PIN B5
#define RGB_MATRIX_LED_COUNT 20
# define RGB_MATRIX_KEYPRESSES // reacts to keypresses
# define RGBLIGHT_LIMIT_VAL 255
Expand Down
3 changes: 3 additions & 0 deletions keyboards/1upkeyboards/super16v2/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"pid": "0x5517",
"device_version": "0.0.1"
},
"ws2812": {
"pin": "B5"
},
"matrix_pins": {
"cols": ["D5", "D6", "C2", "D0"],
"rows": ["D1", "D2", "D3", "D4"]
Expand Down
1 change: 0 additions & 1 deletion keyboards/1upkeyboards/sweet16/v1/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#endif

/* Underglow options */
#define RGB_DI_PIN B1
#define RGBLIGHT_EFFECT_BREATHING
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL
Expand Down
Loading