diff options
author | Ryan <fauxpark@gmail.com> | 2023-02-19 18:55:12 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-19 18:55:12 +1100 |
commit | e837a32b2b4d6eb96ffacad0022699d67c0f8f1e (patch) | |
tree | f5628f3adb0c1403aa919c909c6a768d2bee0588 /keyboards/bpiphany | |
parent | 2222836f092ff52e0e93250ff91048cbb9071877 (diff) |
Move layouts for direct_pins boards to data driven (#19872)
Diffstat (limited to 'keyboards/bpiphany')
-rw-r--r-- | keyboards/bpiphany/sixshooter/info.json | 9 | ||||
-rw-r--r-- | keyboards/bpiphany/sixshooter/sixshooter.h | 8 |
2 files changed, 8 insertions, 9 deletions
diff --git a/keyboards/bpiphany/sixshooter/info.json b/keyboards/bpiphany/sixshooter/info.json index 9f3637be0b..a6ab63f6ae 100644 --- a/keyboards/bpiphany/sixshooter/info.json +++ b/keyboards/bpiphany/sixshooter/info.json @@ -18,7 +18,14 @@ }, "layouts": { "LAYOUT": { - "layout": [{"label":"K00", "x":0, "y":0}, {"label":"K01", "x":1, "y":0}, {"label":"K02", "x":2, "y":0}, {"label":"K03", "x":0, "y":1}, {"label":"K04", "x":1, "y":1}, {"label":"K05", "x":2, "y":1}] + "layout": [ + {"x":0, "y":0, "matrix": [0, 0]}, + {"x":1, "y":0, "matrix": [0, 1]}, + {"x":2, "y":0, "matrix": [0, 2]}, + {"x":0, "y":1, "matrix": [1, 0]}, + {"x":1, "y":1, "matrix": [1, 1]}, + {"x":2, "y":1, "matrix": [1, 2]} + ] } } } diff --git a/keyboards/bpiphany/sixshooter/sixshooter.h b/keyboards/bpiphany/sixshooter/sixshooter.h index 33ac9335e6..0d93c455ef 100644 --- a/keyboards/bpiphany/sixshooter/sixshooter.h +++ b/keyboards/bpiphany/sixshooter/sixshooter.h @@ -2,14 +2,6 @@ #include "quantum.h" -#define LAYOUT( \ - k00, k01, k02, \ - k10, k11, k12 \ -) { \ - { k00, k01, k02 }, \ - { k10, k11, k12 } \ -} - inline void sixshooter_led_0_on(void) { DDRB |= (1<<6); PORTB |= (1<<6); } inline void sixshooter_led_1_on(void) { DDRC |= (1<<7); PORTC |= (1<<7); } inline void sixshooter_led_2_on(void) { DDRD |= (1<<0); PORTD |= (1<<0); } |