Skip to content

Commit

Permalink
Migrate led_update_kb implementations to DD (qmk#23983)
Browse files Browse the repository at this point in the history
  • Loading branch information
zvecr authored and acidMyke committed Nov 3, 2024
1 parent 4d9d932 commit 140a3ee
Show file tree
Hide file tree
Showing 52 changed files with 110 additions and 662 deletions.
18 changes: 0 additions & 18 deletions keyboards/acheron/austin/austin.c

This file was deleted.

5 changes: 5 additions & 0 deletions keyboards/acheron/austin/keyboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@
"levels": 6,
"breathing": true
},
"indicators": {
"caps_lock": "A0",
"num_lock": "A2",
"scroll_lock": "A1"
},
"processor": "STM32F072",
"bootloader": "stm32-dfu",
"layouts": {
Expand Down
17 changes: 0 additions & 17 deletions keyboards/cheshire/curiosity/curiosity.c

This file was deleted.

6 changes: 6 additions & 0 deletions keyboards/cheshire/curiosity/keyboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
"pid": "0x0FAD",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "A9",
"num_lock": "A8",
"scroll_lock": "A10",
"on_state": 0
},
"rgblight": {
"led_count": 14,
"animations": {
Expand Down
14 changes: 1 addition & 13 deletions keyboards/doppelganger/doppelganger.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,9 @@
#include "quantum.h"

void keyboard_pre_init_kb(void) {
gpio_set_pin_output(C6);
gpio_set_pin_output(B0);
}

bool led_update_kb(led_t led_state) {
bool res = led_update_user(led_state);
if (res) {
// gpio_write_pin sets the pin high for 1 and low for 0.
// In this example the pins are inverted, setting
// it low/0 turns it on, and high/1 turns the LED off.
// This behavior depends on whether the LED is between the pin
// and VCC or the pin and GND.
gpio_write_pin(C6, !led_state.caps_lock);
}
return res;
keyboard_pre_init_user();
}

__attribute__((weak)) layer_state_t layer_state_set_user(layer_state_t state) {
Expand Down
4 changes: 4 additions & 0 deletions keyboards/doppelganger/keyboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
"pid": "0x4447",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "C6",
"on_state": 0
},
"matrix_pins": {
"cols": ["F4", "F0", "B7", "B3", "B2", "B1", "D5", "D3", "D2"],
"rows": ["E6", "F1", "C7", "F7", "F6"]
Expand Down
4 changes: 4 additions & 0 deletions keyboards/exclusive/e85/soldered/keyboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
"levels": 6,
"breathing": true
},
"indicators": {
"caps_lock": "C7",
"scroll_lock": "B5"
},
"rgblight": {
"saturation_steps": 8,
"brightness_steps": 8,
Expand Down
32 changes: 0 additions & 32 deletions keyboards/exclusive/e85/soldered/soldered.c

This file was deleted.

4 changes: 4 additions & 0 deletions keyboards/ghs/rar/keyboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
"pid": "0x0001",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "B1",
"scroll_lock": "B3"
},
"rgblight": {
"led_count": 17,
"animations": {
Expand Down
36 changes: 0 additions & 36 deletions keyboards/ghs/rar/rar.c

This file was deleted.

4 changes: 4 additions & 0 deletions keyboards/gray_studio/think65/solder/keyboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@
"nkro": false,
"rgblight": true
},
"indicators": {
"caps_lock": "C7",
"on_state": 0
},
"matrix_pins": {
"cols": ["D1", "D0", "D2", "D3", "D5", "D4", "D6", "D7", "B4", "B5", "F0", "F1", "B6", "F4", "F5", "F6"],
"rows": ["B0", "B1", "B2", "B3", "E6"]
Expand Down
36 changes: 0 additions & 36 deletions keyboards/gray_studio/think65/solder/solder.c

This file was deleted.

6 changes: 6 additions & 0 deletions keyboards/ilumkb/volcano660/keyboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@
"pin": "B7",
"levels": 5
},
"indicators": {
"caps_lock": "D2",
"num_lock": "D0",
"scroll_lock": "D1",
"on_state": 0
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"community_layouts": [
Expand Down
34 changes: 0 additions & 34 deletions keyboards/ilumkb/volcano660/volcano660.c

This file was deleted.

38 changes: 0 additions & 38 deletions keyboards/jae/j01/j01.c

This file was deleted.

4 changes: 4 additions & 0 deletions keyboards/jae/j01/keyboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
"levels": 4,
"breathing": true
},
"indicators": {
"caps_lock": "E6",
"on_state": 0
},
"bootmagic": {
"matrix": [0, 2]
},
Expand Down
4 changes: 4 additions & 0 deletions keyboards/kkatano/wallaby/keyboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
"resync": true
}
},
"indicators": {
"caps_lock": "B6",
"scroll_lock": "B7"
},
"matrix_pins": {
"cols": ["D5", "C7", "C6", "D4", "D0", "E6", "F0", "F1", "F4", "F5", "F6", "F7", "D7", "D6", "D1", "D2", "D3"],
"rows": ["B5", "B4", "B3", "B2", "B1", "B0"]
Expand Down
25 changes: 0 additions & 25 deletions keyboards/kkatano/wallaby/wallaby.c

This file was deleted.

4 changes: 4 additions & 0 deletions keyboards/kkatano/yurei/keyboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
"resync": true
}
},
"indicators": {
"caps_lock": "B6",
"scroll_lock": "B7"
},
"matrix_pins": {
"cols": ["D5", "C7", "C6", "D4", "D0", "E6", "F0", "F1", "F4", "F5", "F6", "F7", "D7", "D6", "D1", "D2", "D3"],
"rows": ["B5", "B4", "B3", "B2", "B1", "B0"]
Expand Down
Loading

0 comments on commit 140a3ee

Please sign in to comment.