diff options
| author | Ryan <fauxpark@gmail.com> | 2023-07-03 07:40:13 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-02 22:40:13 +0100 |
| commit | 023035f462fa307a30968247f33854ac361b232d (patch) | |
| tree | 6d4c493f7867d1f28e4c2181da0153e832924a35 /keyboards/nullbitsco | |
| parent | 9ab16e62f75dc6228549ec0aba00ec0704bbc779 (diff) | |
Move miscellaneous defines to data driven (#21382)
Diffstat (limited to 'keyboards/nullbitsco')
| -rw-r--r-- | keyboards/nullbitsco/snap/config.h | 6 | ||||
| -rw-r--r-- | keyboards/nullbitsco/snap/info.json | 14 |
2 files changed, 14 insertions, 6 deletions
diff --git a/keyboards/nullbitsco/snap/config.h b/keyboards/nullbitsco/snap/config.h index b3b3bf57b2..e859b5b47d 100644 --- a/keyboards/nullbitsco/snap/config.h +++ b/keyboards/nullbitsco/snap/config.h | |||
| @@ -69,12 +69,6 @@ | |||
| 69 | #define RGBLIGHT_EFFECT_ALTERNATING | 69 | #define RGBLIGHT_EFFECT_ALTERNATING |
| 70 | #define RGBLIGHT_EFFECT_TWINKLE | 70 | #define RGBLIGHT_EFFECT_TWINKLE |
| 71 | 71 | ||
| 72 | /* Optional encoder pins */ | ||
| 73 | #define ENCODERS_PAD_A { B3 } | ||
| 74 | #define ENCODERS_PAD_B { B1 } | ||
| 75 | #define ENCODERS_PAD_A_RIGHT { B4 } | ||
| 76 | #define ENCODERS_PAD_B_RIGHT { B5 } | ||
| 77 | |||
| 78 | /* Optional speaker pin */ | 72 | /* Optional speaker pin */ |
| 79 | #define AUDIO_PIN B6 | 73 | #define AUDIO_PIN B6 |
| 80 | 74 | ||
diff --git a/keyboards/nullbitsco/snap/info.json b/keyboards/nullbitsco/snap/info.json index b16015c123..97b06b5b34 100644 --- a/keyboards/nullbitsco/snap/info.json +++ b/keyboards/nullbitsco/snap/info.json | |||
| @@ -7,12 +7,26 @@ | |||
| 7 | "pid": "0x6063", | 7 | "pid": "0x6063", |
| 8 | "device_version": "0.0.1" | 8 | "device_version": "0.0.1" |
| 9 | }, | 9 | }, |
| 10 | "encoder": { | ||
| 11 | "rotary": [ | ||
| 12 | {"pin_a": "B3", "pin_b": "B1"} | ||
| 13 | ] | ||
| 14 | }, | ||
| 10 | "rgblight": { | 15 | "rgblight": { |
| 11 | "led_count": 10, | 16 | "led_count": 10, |
| 12 | "sleep": true, | 17 | "sleep": true, |
| 13 | "led_map": [8, 9, 0, 1, 2, 6, 7, 3, 4, 5], | 18 | "led_map": [8, 9, 0, 1, 2, 6, 7, 3, 4, 5], |
| 14 | "split_count": [5, 5] | 19 | "split_count": [5, 5] |
| 15 | }, | 20 | }, |
| 21 | "split": { | ||
| 22 | "encoder": { | ||
| 23 | "right": { | ||
| 24 | "rotary": [ | ||
| 25 | {"pin_a": "B4", "pin_b": "B5"} | ||
| 26 | ] | ||
| 27 | } | ||
| 28 | } | ||
| 29 | }, | ||
| 16 | "ws2812": { | 30 | "ws2812": { |
| 17 | "pin": "B2" | 31 | "pin": "B2" |
| 18 | }, | 32 | }, |
