diff options
Diffstat (limited to 'keyboards/1upkeyboards/pi40')
-rw-r--r-- | keyboards/1upkeyboards/pi40/config.h | 3 | ||||
-rw-r--r-- | keyboards/1upkeyboards/pi40/grid_v1_1/info.json | 207 | ||||
-rw-r--r-- | keyboards/1upkeyboards/pi40/keymaps/default/keymap.c | 2 | ||||
-rw-r--r-- | keyboards/1upkeyboards/pi40/keymaps/via/keymap.c | 2 | ||||
-rw-r--r-- | keyboards/1upkeyboards/pi40/mit_v1_0/info.json | 205 | ||||
-rw-r--r-- | keyboards/1upkeyboards/pi40/mit_v1_1/info.json | 205 | ||||
-rw-r--r-- | keyboards/1upkeyboards/pi40/rules.mk | 2 |
7 files changed, 313 insertions, 313 deletions
diff --git a/keyboards/1upkeyboards/pi40/config.h b/keyboards/1upkeyboards/pi40/config.h index 5d3841ae85..633bdfffee 100644 --- a/keyboards/1upkeyboards/pi40/config.h +++ b/keyboards/1upkeyboards/pi40/config.h @@ -10,9 +10,8 @@ #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 RGB_MATRIX_FRAMEBUFFER_EFFECTS # define RGBLIGHT_LIMIT_VAL 150 #ifdef RGB_MATRIX_ENABLE # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended diff --git a/keyboards/1upkeyboards/pi40/grid_v1_1/info.json b/keyboards/1upkeyboards/pi40/grid_v1_1/info.json index b3c64f7dd4..695d5cb9b7 100644 --- a/keyboards/1upkeyboards/pi40/grid_v1_1/info.json +++ b/keyboards/1upkeyboards/pi40/grid_v1_1/info.json @@ -13,6 +13,10 @@ "dynamic_keymap": { "layer_count": 10 }, + "ws2812": { + "pin": "GP0", + "driver": "vendor" + }, "features": { "audio": false, "backlight": false, @@ -26,123 +30,120 @@ "rgblight": false }, "matrix_pins": { - "rows": [ "GP21", "GP20", "GP19", "GP18" ], - "cols": [ "GP1", "GP2", "GP3", "GP4", "GP5", "GP6", "GP7", "GP8", "GP9", "GP10", "GP11", "GP12", "GP22" ] + "rows": ["GP21", "GP20", "GP19", "GP18"], + "cols": ["GP1", "GP2", "GP3", "GP4", "GP5", "GP6", "GP7", "GP8", "GP9", "GP10", "GP11", "GP12", "GP22"] }, "encoder": { "enabled": true, "rotary": [ - { - "pin_a": "GP14", - "pin_b": "GP13" - } + {"pin_a": "GP14", "pin_b": "GP13"} ] }, "rgb_matrix": { "driver": "WS2812", "layout": [ - { "flags": 1, "matrix": [0, 0], "x": 9, "y": 8 }, - { "flags": 4, "matrix": [0, 1], "x": 28, "y": 8 }, - { "flags": 4, "matrix": [0, 2], "x": 46, "y": 8 }, - { "flags": 4, "matrix": [0, 3], "x": 65, "y": 8 }, - { "flags": 4, "matrix": [0, 4], "x": 84, "y": 8 }, - { "flags": 4, "matrix": [0, 5], "x": 102, "y": 8 }, - { "flags": 4, "matrix": [0, 6], "x": 121, "y": 8 }, - { "flags": 4, "matrix": [0, 7], "x": 140, "y": 8 }, - { "flags": 4, "matrix": [0, 8], "x": 159, "y": 8 }, - { "flags": 4, "matrix": [0, 9], "x": 177, "y": 8 }, - { "flags": 4, "matrix": [0, 10], "x": 196, "y": 8 }, - { "flags": 1, "matrix": [0, 11], "x": 215, "y": 8 }, - { "flags": 1, "matrix": [1, 11], "x": 215, "y": 24 }, - { "flags": 4, "matrix": [1, 10], "x": 196, "y": 24 }, - { "flags": 4, "matrix": [1, 9], "x": 177, "y": 24 }, - { "flags": 4, "matrix": [1, 8], "x": 159, "y": 24 }, - { "flags": 4, "matrix": [1, 7], "x": 140, "y": 24 }, - { "flags": 4, "matrix": [1, 6], "x": 121, "y": 24 }, - { "flags": 4, "matrix": [1, 5], "x": 102, "y": 24 }, - { "flags": 4, "matrix": [1, 4], "x": 84, "y": 24 }, - { "flags": 4, "matrix": [1, 3], "x": 65, "y": 24 }, - { "flags": 4, "matrix": [1, 2], "x": 46, "y": 24 }, - { "flags": 4, "matrix": [1, 1], "x": 28, "y": 24 }, - { "flags": 1, "matrix": [1, 0], "x": 9, "y": 24 }, - { "flags": 1, "matrix": [2, 0], "x": 9, "y": 40 }, - { "flags": 4, "matrix": [2, 1], "x": 28, "y": 40 }, - { "flags": 4, "matrix": [2, 2], "x": 46, "y": 40 }, - { "flags": 4, "matrix": [2, 3], "x": 65, "y": 40 }, - { "flags": 4, "matrix": [2, 4], "x": 84, "y": 40 }, - { "flags": 4, "matrix": [2, 5], "x": 102, "y": 40 }, - { "flags": 4, "matrix": [2, 6], "x": 121, "y": 40 }, - { "flags": 4, "matrix": [2, 7], "x": 140, "y": 40 }, - { "flags": 4, "matrix": [2, 8], "x": 159, "y": 40 }, - { "flags": 4, "matrix": [2, 9], "x": 177, "y": 40 }, - { "flags": 4, "matrix": [2, 10], "x": 196, "y": 40 }, - { "flags": 1, "matrix": [2, 11], "x": 215, "y": 40 }, - { "flags": 1, "matrix": [3, 11], "x": 215, "y": 56 }, - { "flags": 1, "matrix": [3, 10], "x": 196, "y": 56 }, - { "flags": 1, "matrix": [3, 9], "x": 177, "y": 56 }, - { "flags": 1, "matrix": [3, 8], "x": 159, "y": 56 }, - { "flags": 1, "matrix": [3, 7], "x": 140, "y": 56 }, - { "flags": 1, "matrix": [3, 6], "x": 121, "y": 56 }, - { "flags": 1, "matrix": [3, 4], "x": 84, "y": 56 }, - { "flags": 1, "matrix": [3, 3], "x": 65, "y": 56 }, - { "flags": 1, "matrix": [3, 2], "x": 46, "y": 56 }, - { "flags": 1, "matrix": [3, 1], "x": 28, "y": 56 }, - { "flags": 1, "matrix": [3, 0], "x": 9, "y": 56 }, - { "flags": 1, "matrix": [3, 5], "x": 102, "y": 56 } + {"flags": 1, "matrix": [0, 0], "x": 9, "y": 8}, + {"flags": 4, "matrix": [0, 1], "x": 28, "y": 8}, + {"flags": 4, "matrix": [0, 2], "x": 46, "y": 8}, + {"flags": 4, "matrix": [0, 3], "x": 65, "y": 8}, + {"flags": 4, "matrix": [0, 4], "x": 84, "y": 8}, + {"flags": 4, "matrix": [0, 5], "x": 102, "y": 8}, + {"flags": 4, "matrix": [0, 6], "x": 121, "y": 8}, + {"flags": 4, "matrix": [0, 7], "x": 140, "y": 8}, + {"flags": 4, "matrix": [0, 8], "x": 159, "y": 8}, + {"flags": 4, "matrix": [0, 9], "x": 177, "y": 8}, + {"flags": 4, "matrix": [0, 10], "x": 196, "y": 8}, + {"flags": 1, "matrix": [0, 11], "x": 215, "y": 8}, + {"flags": 1, "matrix": [1, 11], "x": 215, "y": 24}, + {"flags": 4, "matrix": [1, 10], "x": 196, "y": 24}, + {"flags": 4, "matrix": [1, 9], "x": 177, "y": 24}, + {"flags": 4, "matrix": [1, 8], "x": 159, "y": 24}, + {"flags": 4, "matrix": [1, 7], "x": 140, "y": 24}, + {"flags": 4, "matrix": [1, 6], "x": 121, "y": 24}, + {"flags": 4, "matrix": [1, 5], "x": 102, "y": 24}, + {"flags": 4, "matrix": [1, 4], "x": 84, "y": 24}, + {"flags": 4, "matrix": [1, 3], "x": 65, "y": 24}, + {"flags": 4, "matrix": [1, 2], "x": 46, "y": 24}, + {"flags": 4, "matrix": [1, 1], "x": 28, "y": 24}, + {"flags": 1, "matrix": [1, 0], "x": 9, "y": 24}, + {"flags": 1, "matrix": [2, 0], "x": 9, "y": 40}, + {"flags": 4, "matrix": [2, 1], "x": 28, "y": 40}, + {"flags": 4, "matrix": [2, 2], "x": 46, "y": 40}, + {"flags": 4, "matrix": [2, 3], "x": 65, "y": 40}, + {"flags": 4, "matrix": [2, 4], "x": 84, "y": 40}, + {"flags": 4, "matrix": [2, 5], "x": 102, "y": 40}, + {"flags": 4, "matrix": [2, 6], "x": 121, "y": 40}, + {"flags": 4, "matrix": [2, 7], "x": 140, "y": 40}, + {"flags": 4, "matrix": [2, 8], "x": 159, "y": 40}, + {"flags": 4, "matrix": [2, 9], "x": 177, "y": 40}, + {"flags": 4, "matrix": [2, 10], "x": 196, "y": 40}, + {"flags": 1, "matrix": [2, 11], "x": 215, "y": 40}, + {"flags": 1, "matrix": [3, 11], "x": 215, "y": 56}, + {"flags": 1, "matrix": [3, 10], "x": 196, "y": 56}, + {"flags": 1, "matrix": [3, 9], "x": 177, "y": 56}, + {"flags": 1, "matrix": [3, 8], "x": 159, "y": 56}, + {"flags": 1, "matrix": [3, 7], "x": 140, "y": 56}, + {"flags": 1, "matrix": [3, 6], "x": 121, "y": 56}, + {"flags": 1, "matrix": [3, 4], "x": 84, "y": 56}, + {"flags": 1, "matrix": [3, 3], "x": 65, "y": 56}, + {"flags": 1, "matrix": [3, 2], "x": 46, "y": 56}, + {"flags": 1, "matrix": [3, 1], "x": 28, "y": 56}, + {"flags": 1, "matrix": [3, 0], "x": 9, "y": 56}, + {"flags": 1, "matrix": [3, 5], "x": 102, "y": 56} ] }, "layouts": { "LAYOUT_ortho_4x12": { "layout": [ - { "matrix": [0, 12], "x": 11, "y": 0 }, - { "matrix": [0, 0], "x": 0, "y": 1 }, - { "matrix": [0, 1], "x": 1, "y": 1 }, - { "matrix": [0, 2], "x": 2, "y": 1 }, - { "matrix": [0, 3], "x": 3, "y": 1 }, - { "matrix": [0, 4], "x": 4, "y": 1 }, - { "matrix": [0, 5], "x": 5, "y": 1 }, - { "matrix": [0, 6], "x": 6, "y": 1 }, - { "matrix": [0, 7], "x": 7, "y": 1 }, - { "matrix": [0, 8], "x": 8, "y": 1 }, - { "matrix": [0, 9], "x": 9, "y": 1 }, - { "matrix": [0, 10], "x": 10, "y": 1 }, - { "matrix": [0, 11], "x": 11, "y": 1 }, - { "matrix": [1, 0], "x": 0, "y": 2 }, - { "matrix": [1, 1], "x": 1, "y": 2 }, - { "matrix": [1, 2], "x": 2, "y": 2 }, - { "matrix": [1, 3], "x": 3, "y": 2 }, - { "matrix": [1, 4], "x": 4, "y": 2 }, - { "matrix": [1, 5], "x": 5, "y": 2 }, - { "matrix": [1, 6], "x": 6, "y": 2 }, - { "matrix": [1, 7], "x": 7, "y": 2 }, - { "matrix": [1, 8], "x": 8, "y": 2 }, - { "matrix": [1, 9], "x": 9, "y": 2 }, - { "matrix": [1, 10], "x": 10, "y": 2 }, - { "matrix": [1, 11], "x": 11, "y": 2 }, - { "matrix": [2, 0], "x": 0, "y": 3 }, - { "matrix": [2, 1], "x": 1, "y": 3 }, - { "matrix": [2, 2], "x": 2, "y": 3 }, - { "matrix": [2, 3], "x": 3, "y": 3 }, - { "matrix": [2, 4], "x": 4, "y": 3 }, - { "matrix": [2, 5], "x": 5, "y": 3 }, - { "matrix": [2, 6], "x": 6, "y": 3 }, - { "matrix": [2, 7], "x": 7, "y": 3 }, - { "matrix": [2, 8], "x": 8, "y": 3 }, - { "matrix": [2, 9], "x": 9, "y": 3 }, - { "matrix": [2, 10], "x": 10, "y": 3 }, - { "matrix": [2, 11], "x": 11, "y": 3 }, - { "matrix": [3, 0], "x": 0, "y": 4 }, - { "matrix": [3, 1], "x": 1, "y": 4 }, - { "matrix": [3, 2], "x": 2, "y": 4 }, - { "matrix": [3, 3], "x": 3, "y": 4 }, - { "matrix": [3, 4], "x": 4, "y": 4 }, - { "matrix": [3, 5], "x": 5, "y": 4 }, - { "matrix": [3, 6], "x": 6, "y": 4 }, - { "matrix": [3, 7], "x": 7, "y": 4 }, - { "matrix": [3, 8], "x": 8, "y": 4 }, - { "matrix": [3, 9], "x": 9, "y": 4 }, - { "matrix": [3, 10], "x": 10, "y": 4 }, - { "matrix": [3, 11], "x": 11, "y": 4 } + {"matrix": [0, 12], "x": 11, "y": 0}, + {"matrix": [0, 0], "x": 0, "y": 1}, + {"matrix": [0, 1], "x": 1, "y": 1}, + {"matrix": [0, 2], "x": 2, "y": 1}, + {"matrix": [0, 3], "x": 3, "y": 1}, + {"matrix": [0, 4], "x": 4, "y": 1}, + {"matrix": [0, 5], "x": 5, "y": 1}, + {"matrix": [0, 6], "x": 6, "y": 1}, + {"matrix": [0, 7], "x": 7, "y": 1}, + {"matrix": [0, 8], "x": 8, "y": 1}, + {"matrix": [0, 9], "x": 9, "y": 1}, + {"matrix": [0, 10], "x": 10, "y": 1}, + {"matrix": [0, 11], "x": 11, "y": 1}, + {"matrix": [1, 0], "x": 0, "y": 2}, + {"matrix": [1, 1], "x": 1, "y": 2}, + {"matrix": [1, 2], "x": 2, "y": 2}, + {"matrix": [1, 3], "x": 3, "y": 2}, + {"matrix": [1, 4], "x": 4, "y": 2}, + {"matrix": [1, 5], "x": 5, "y": 2}, + {"matrix": [1, 6], "x": 6, "y": 2}, + {"matrix": [1, 7], "x": 7, "y": 2}, + {"matrix": [1, 8], "x": 8, "y": 2}, + {"matrix": [1, 9], "x": 9, "y": 2}, + {"matrix": [1, 10], "x": 10, "y": 2}, + {"matrix": [1, 11], "x": 11, "y": 2}, + {"matrix": [2, 0], "x": 0, "y": 3}, + {"matrix": [2, 1], "x": 1, "y": 3}, + {"matrix": [2, 2], "x": 2, "y": 3}, + {"matrix": [2, 3], "x": 3, "y": 3}, + {"matrix": [2, 4], "x": 4, "y": 3}, + {"matrix": [2, 5], "x": 5, "y": 3}, + {"matrix": [2, 6], "x": 6, "y": 3}, + {"matrix": [2, 7], "x": 7, "y": 3}, + {"matrix": [2, 8], "x": 8, "y": 3}, + {"matrix": [2, 9], "x": 9, "y": 3}, + {"matrix": [2, 10], "x": 10, "y": 3}, + {"matrix": [2, 11], "x": 11, "y": 3}, + {"matrix": [3, 0], "x": 0, "y": 4}, + {"matrix": [3, 1], "x": 1, "y": 4}, + {"matrix": [3, 2], "x": 2, "y": 4}, + {"matrix": [3, 3], "x": 3, "y": 4}, + {"matrix": [3, 4], "x": 4, "y": 4}, + {"matrix": [3, 5], "x": 5, "y": 4}, + {"matrix": [3, 6], "x": 6, "y": 4}, + {"matrix": [3, 7], "x": 7, "y": 4}, + {"matrix": [3, 8], "x": 8, "y": 4}, + {"matrix": [3, 9], "x": 9, "y": 4}, + {"matrix": [3, 10], "x": 10, "y": 4}, + {"matrix": [3, 11], "x": 11, "y": 4} ] } } diff --git a/keyboards/1upkeyboards/pi40/keymaps/default/keymap.c b/keyboards/1upkeyboards/pi40/keymaps/default/keymap.c index 9aeaccb754..bc0d37eca0 100644 --- a/keyboards/1upkeyboards/pi40/keymaps/default/keymap.c +++ b/keyboards/1upkeyboards/pi40/keymaps/default/keymap.c @@ -115,7 +115,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { }; #if defined(ENCODER_MAP_ENABLE) -const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = { +const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = { [_ONE] = { ENCODER_CCW_CW(RGB_RMOD, RGB_MOD) }, [_TWO] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) }, [_THREE] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) }, diff --git a/keyboards/1upkeyboards/pi40/keymaps/via/keymap.c b/keyboards/1upkeyboards/pi40/keymaps/via/keymap.c index 8f5226ddf8..e8a14d493f 100644 --- a/keyboards/1upkeyboards/pi40/keymaps/via/keymap.c +++ b/keyboards/1upkeyboards/pi40/keymaps/via/keymap.c @@ -253,7 +253,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { }; #if defined(ENCODER_MAP_ENABLE) -const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = { +const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = { [_ONE] = { ENCODER_CCW_CW(RGB_RMOD, RGB_MOD) }, [_TWO] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) }, [_THREE] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) }, diff --git a/keyboards/1upkeyboards/pi40/mit_v1_0/info.json b/keyboards/1upkeyboards/pi40/mit_v1_0/info.json index d476109f79..ebd5d64931 100644 --- a/keyboards/1upkeyboards/pi40/mit_v1_0/info.json +++ b/keyboards/1upkeyboards/pi40/mit_v1_0/info.json @@ -13,6 +13,10 @@ "dynamic_keymap": { "layer_count": 10 }, + "ws2812": { + "pin": "GP0", + "driver": "vendor" + }, "features": { "audio": false, "backlight": false, @@ -26,122 +30,119 @@ "rgblight": false }, "matrix_pins": { - "rows": [ "GP21", "GP20", "GP19", "GP18" ], - "cols": [ "GP1", "GP2", "GP3", "GP4", "GP5", "GP6", "GP7", "GP8", "GP9", "GP10", "GP11", "GP12", "GP22" ] + "rows": ["GP21", "GP20", "GP19", "GP18"], + "cols": ["GP1", "GP2", "GP3", "GP4", "GP5", "GP6", "GP7", "GP8", "GP9", "GP10", "GP11", "GP12", "GP22"] }, "encoder": { "enabled": true, "rotary": [ - { - "pin_a": "GP14", - "pin_b": "GP13" - } + {"pin_a": "GP14", "pin_b": "GP13"} ] }, "rgb_matrix": { "driver": "WS2812", "layout": [ - { "flags": 1, "matrix": [0, 0], "x": 9, "y": 8 }, - { "flags": 4, "matrix": [0, 1], "x": 28, "y": 8 }, - { "flags": 4, "matrix": [0, 2], "x": 46, "y": 8 }, - { "flags": 4, "matrix": [0, 3], "x": 65, "y": 8 }, - { "flags": 4, "matrix": [0, 4], "x": 84, "y": 8 }, - { "flags": 4, "matrix": [0, 5], "x": 102, "y": 8 }, - { "flags": 4, "matrix": [0, 6], "x": 121, "y": 8 }, - { "flags": 4, "matrix": [0, 7], "x": 140, "y": 8 }, - { "flags": 4, "matrix": [0, 8], "x": 159, "y": 8 }, - { "flags": 4, "matrix": [0, 9], "x": 177, "y": 8 }, - { "flags": 4, "matrix": [0, 10], "x": 196, "y": 8 }, - { "flags": 1, "matrix": [0, 11], "x": 215, "y": 8 }, - { "flags": 1, "matrix": [1, 11], "x": 215, "y": 24 }, - { "flags": 4, "matrix": [1, 10], "x": 196, "y": 24 }, - { "flags": 4, "matrix": [1, 9], "x": 177, "y": 24 }, - { "flags": 4, "matrix": [1, 8], "x": 159, "y": 24 }, - { "flags": 4, "matrix": [1, 7], "x": 140, "y": 24 }, - { "flags": 4, "matrix": [1, 6], "x": 121, "y": 24 }, - { "flags": 4, "matrix": [1, 5], "x": 102, "y": 24 }, - { "flags": 4, "matrix": [1, 4], "x": 84, "y": 24 }, - { "flags": 4, "matrix": [1, 3], "x": 65, "y": 24 }, - { "flags": 4, "matrix": [1, 2], "x": 46, "y": 24 }, - { "flags": 4, "matrix": [1, 1], "x": 28, "y": 24 }, - { "flags": 1, "matrix": [1, 0], "x": 9, "y": 24 }, - { "flags": 1, "matrix": [2, 0], "x": 9, "y": 40 }, - { "flags": 4, "matrix": [2, 1], "x": 28, "y": 40 }, - { "flags": 4, "matrix": [2, 2], "x": 46, "y": 40 }, - { "flags": 4, "matrix": [2, 3], "x": 65, "y": 40 }, - { "flags": 4, "matrix": [2, 4], "x": 84, "y": 40 }, - { "flags": 4, "matrix": [2, 5], "x": 102, "y": 40 }, - { "flags": 4, "matrix": [2, 6], "x": 121, "y": 40 }, - { "flags": 4, "matrix": [2, 7], "x": 140, "y": 40 }, - { "flags": 4, "matrix": [2, 8], "x": 159, "y": 40 }, - { "flags": 4, "matrix": [2, 9], "x": 177, "y": 40 }, - { "flags": 4, "matrix": [2, 10], "x": 196, "y": 40 }, - { "flags": 1, "matrix": [2, 11], "x": 215, "y": 40 }, - { "flags": 1, "matrix": [3, 11], "x": 215, "y": 56 }, - { "flags": 1, "matrix": [3, 10], "x": 196, "y": 56 }, - { "flags": 1, "matrix": [3, 9], "x": 177, "y": 56 }, - { "flags": 1, "matrix": [3, 8], "x": 159, "y": 56 }, - { "flags": 1, "matrix": [3, 7], "x": 140, "y": 56 }, - { "flags": 1, "matrix": [3, 5], "x": 112, "y": 56 }, - { "flags": 1, "matrix": [3, 4], "x": 84, "y": 56 }, - { "flags": 1, "matrix": [3, 3], "x": 65, "y": 56 }, - { "flags": 1, "matrix": [3, 2], "x": 46, "y": 56 }, - { "flags": 1, "matrix": [3, 1], "x": 28, "y": 56 }, - { "flags": 1, "matrix": [3, 0], "x": 9, "y": 56 } + {"flags": 1, "matrix": [0, 0], "x": 9, "y": 8}, + {"flags": 4, "matrix": [0, 1], "x": 28, "y": 8}, + {"flags": 4, "matrix": [0, 2], "x": 46, "y": 8}, + {"flags": 4, "matrix": [0, 3], "x": 65, "y": 8}, + {"flags": 4, "matrix": [0, 4], "x": 84, "y": 8}, + {"flags": 4, "matrix": [0, 5], "x": 102, "y": 8}, + {"flags": 4, "matrix": [0, 6], "x": 121, "y": 8}, + {"flags": 4, "matrix": [0, 7], "x": 140, "y": 8}, + {"flags": 4, "matrix": [0, 8], "x": 159, "y": 8}, + {"flags": 4, "matrix": [0, 9], "x": 177, "y": 8}, + {"flags": 4, "matrix": [0, 10], "x": 196, "y": 8}, + {"flags": 1, "matrix": [0, 11], "x": 215, "y": 8}, + {"flags": 1, "matrix": [1, 11], "x": 215, "y": 24}, + {"flags": 4, "matrix": [1, 10], "x": 196, "y": 24}, + {"flags": 4, "matrix": [1, 9], "x": 177, "y": 24}, + {"flags": 4, "matrix": [1, 8], "x": 159, "y": 24}, + {"flags": 4, "matrix": [1, 7], "x": 140, "y": 24}, + {"flags": 4, "matrix": [1, 6], "x": 121, "y": 24}, + {"flags": 4, "matrix": [1, 5], "x": 102, "y": 24}, + {"flags": 4, "matrix": [1, 4], "x": 84, "y": 24}, + {"flags": 4, "matrix": [1, 3], "x": 65, "y": 24}, + {"flags": 4, "matrix": [1, 2], "x": 46, "y": 24}, + {"flags": 4, "matrix": [1, 1], "x": 28, "y": 24}, + {"flags": 1, "matrix": [1, 0], "x": 9, "y": 24}, + {"flags": 1, "matrix": [2, 0], "x": 9, "y": 40}, + {"flags": 4, "matrix": [2, 1], "x": 28, "y": 40}, + {"flags": 4, "matrix": [2, 2], "x": 46, "y": 40}, + {"flags": 4, "matrix": [2, 3], "x": 65, "y": 40}, + {"flags": 4, "matrix": [2, 4], "x": 84, "y": 40}, + {"flags": 4, "matrix": [2, 5], "x": 102, "y": 40}, + {"flags": 4, "matrix": [2, 6], "x": 121, "y": 40}, + {"flags": 4, "matrix": [2, 7], "x": 140, "y": 40}, + {"flags": 4, "matrix": [2, 8], "x": 159, "y": 40}, + {"flags": 4, "matrix": [2, 9], "x": 177, "y": 40}, + {"flags": 4, "matrix": [2, 10], "x": 196, "y": 40}, + {"flags": 1, "matrix": [2, 11], "x": 215, "y": 40}, + {"flags": 1, "matrix": [3, 11], "x": 215, "y": 56}, + {"flags": 1, "matrix": [3, 10], "x": 196, "y": 56}, + {"flags": 1, "matrix": [3, 9], "x": 177, "y": 56}, + {"flags": 1, "matrix": [3, 8], "x": 159, "y": 56}, + {"flags": 1, "matrix": [3, 7], "x": 140, "y": 56}, + {"flags": 1, "matrix": [3, 5], "x": 112, "y": 56}, + {"flags": 1, "matrix": [3, 4], "x": 84, "y": 56}, + {"flags": 1, "matrix": [3, 3], "x": 65, "y": 56}, + {"flags": 1, "matrix": [3, 2], "x": 46, "y": 56}, + {"flags": 1, "matrix": [3, 1], "x": 28, "y": 56}, + {"flags": 1, "matrix": [3, 0], "x": 9, "y": 56} ] }, "layouts": { "LAYOUT_ortho_4x12": { "layout": [ - { "matrix": [3, 6], "x": 11, "y": 0 }, - { "matrix": [0, 0], "x": 0, "y": 1 }, - { "matrix": [0, 1], "x": 1, "y": 1 }, - { "matrix": [0, 2], "x": 2, "y": 1 }, - { "matrix": [0, 3], "x": 3, "y": 1 }, - { "matrix": [0, 4], "x": 4, "y": 1 }, - { "matrix": [0, 5], "x": 5, "y": 1 }, - { "matrix": [0, 6], "x": 6, "y": 1 }, - { "matrix": [0, 7], "x": 7, "y": 1 }, - { "matrix": [0, 8], "x": 8, "y": 1 }, - { "matrix": [0, 9], "x": 9, "y": 1 }, - { "matrix": [0, 10], "x": 10, "y": 1 }, - { "matrix": [0, 11], "x": 11, "y": 1 }, - { "matrix": [1, 0], "x": 0, "y": 2 }, - { "matrix": [1, 1], "x": 1, "y": 2 }, - { "matrix": [1, 2], "x": 2, "y": 2 }, - { "matrix": [1, 3], "x": 3, "y": 2 }, - { "matrix": [1, 4], "x": 4, "y": 2 }, - { "matrix": [1, 5], "x": 5, "y": 2 }, - { "matrix": [1, 6], "x": 6, "y": 2 }, - { "matrix": [1, 7], "x": 7, "y": 2 }, - { "matrix": [1, 8], "x": 8, "y": 2 }, - { "matrix": [1, 9], "x": 9, "y": 2 }, - { "matrix": [1, 10], "x": 10, "y": 2 }, - { "matrix": [1, 11], "x": 11, "y": 2 }, - { "matrix": [2, 0], "x": 0, "y": 3 }, - { "matrix": [2, 1], "x": 1, "y": 3 }, - { "matrix": [2, 2], "x": 2, "y": 3 }, - { "matrix": [2, 3], "x": 3, "y": 3 }, - { "matrix": [2, 4], "x": 4, "y": 3 }, - { "matrix": [2, 5], "x": 5, "y": 3 }, - { "matrix": [2, 6], "x": 6, "y": 3 }, - { "matrix": [2, 7], "x": 7, "y": 3 }, - { "matrix": [2, 8], "x": 8, "y": 3 }, - { "matrix": [2, 9], "x": 9, "y": 3 }, - { "matrix": [2, 10], "x": 10, "y": 3 }, - { "matrix": [2, 11], "x": 11, "y": 3 }, - { "matrix": [3, 0], "x": 0, "y": 4 }, - { "matrix": [3, 1], "x": 1, "y": 4 }, - { "matrix": [3, 2], "x": 2, "y": 4 }, - { "matrix": [3, 3], "x": 3, "y": 4 }, - { "matrix": [3, 4], "x": 4, "y": 4 }, - { "matrix": [3, 5], "x": 5, "y": 4 }, - { "matrix": [0, 12], "x": 6, "y": 4 }, - { "matrix": [3, 7], "x": 7, "y": 4 }, - { "matrix": [3, 8], "x": 8, "y": 4 }, - { "matrix": [3, 9], "x": 9, "y": 4 }, - { "matrix": [3, 10], "x": 10, "y": 4 }, - { "matrix": [3, 11], "x": 11, "y": 4 } + {"matrix": [3, 6], "x": 11, "y": 0}, + {"matrix": [0, 0], "x": 0, "y": 1}, + {"matrix": [0, 1], "x": 1, "y": 1}, + {"matrix": [0, 2], "x": 2, "y": 1}, + {"matrix": [0, 3], "x": 3, "y": 1}, + {"matrix": [0, 4], "x": 4, "y": 1}, + {"matrix": [0, 5], "x": 5, "y": 1}, + {"matrix": [0, 6], "x": 6, "y": 1}, + {"matrix": [0, 7], "x": 7, "y": 1}, + {"matrix": [0, 8], "x": 8, "y": 1}, + {"matrix": [0, 9], "x": 9, "y": 1}, + {"matrix": [0, 10], "x": 10, "y": 1}, + {"matrix": [0, 11], "x": 11, "y": 1}, + {"matrix": [1, 0], "x": 0, "y": 2}, + {"matrix": [1, 1], "x": 1, "y": 2}, + {"matrix": [1, 2], "x": 2, "y": 2}, + {"matrix": [1, 3], "x": 3, "y": 2}, + {"matrix": [1, 4], "x": 4, "y": 2}, + {"matrix": [1, 5], "x": 5, "y": 2}, + {"matrix": [1, 6], "x": 6, "y": 2}, + {"matrix": [1, 7], "x": 7, "y": 2}, + {"matrix": [1, 8], "x": 8, "y": 2}, + {"matrix": [1, 9], "x": 9, "y": 2}, + {"matrix": [1, 10], "x": 10, "y": 2}, + {"matrix": [1, 11], "x": 11, "y": 2}, + {"matrix": [2, 0], "x": 0, "y": 3}, + {"matrix": [2, 1], "x": 1, "y": 3}, + {"matrix": [2, 2], "x": 2, "y": 3}, + {"matrix": [2, 3], "x": 3, "y": 3}, + {"matrix": [2, 4], "x": 4, "y": 3}, + {"matrix": [2, 5], "x": 5, "y": 3}, + {"matrix": [2, 6], "x": 6, "y": 3}, + {"matrix": [2, 7], "x": 7, "y": 3}, + {"matrix": [2, 8], "x": 8, "y": 3}, + {"matrix": [2, 9], "x": 9, "y": 3}, + {"matrix": [2, 10], "x": 10, "y": 3}, + {"matrix": [2, 11], "x": 11, "y": 3}, + {"matrix": [3, 0], "x": 0, "y": 4}, + {"matrix": [3, 1], "x": 1, "y": 4}, + {"matrix": [3, 2], "x": 2, "y": 4}, + {"matrix": [3, 3], "x": 3, "y": 4}, + {"matrix": [3, 4], "x": 4, "y": 4}, + {"matrix": [3, 5], "x": 5, "y": 4}, + {"matrix": [0, 12], "x": 6, "y": 4}, + {"matrix": [3, 7], "x": 7, "y": 4}, + {"matrix": [3, 8], "x": 8, "y": 4}, + {"matrix": [3, 9], "x": 9, "y": 4}, + {"matrix": [3, 10], "x": 10, "y": 4}, + {"matrix": [3, 11], "x": 11, "y": 4} ] } } diff --git a/keyboards/1upkeyboards/pi40/mit_v1_1/info.json b/keyboards/1upkeyboards/pi40/mit_v1_1/info.json index 9e01928554..3ee2e738f1 100644 --- a/keyboards/1upkeyboards/pi40/mit_v1_1/info.json +++ b/keyboards/1upkeyboards/pi40/mit_v1_1/info.json @@ -13,6 +13,10 @@ "dynamic_keymap": { "layer_count": 10 }, + "ws2812": { + "pin": "GP0", + "driver": "vendor" + }, "features": { "audio": false, "backlight": false, @@ -26,122 +30,119 @@ "rgblight": false }, "matrix_pins": { - "rows": [ "GP21", "GP20", "GP19", "GP18" ], - "cols": [ "GP1", "GP2", "GP3", "GP4", "GP5", "GP6", "GP7", "GP8", "GP9", "GP10", "GP11", "GP12", "GP22" ] + "rows": ["GP21", "GP20", "GP19", "GP18"], + "cols": ["GP1", "GP2", "GP3", "GP4", "GP5", "GP6", "GP7", "GP8", "GP9", "GP10", "GP11", "GP12", "GP22"] }, "encoder": { "enabled": true, "rotary": [ - { - "pin_a": "GP14", - "pin_b": "GP13" - } + {"pin_a": "GP14", "pin_b": "GP13"} ] }, "rgb_matrix": { "driver": "WS2812", "layout": [ - { "flags": 1, "matrix": [0, 0], "x": 9, "y": 8 }, - { "flags": 4, "matrix": [0, 1], "x": 28, "y": 8 }, - { "flags": 4, "matrix": [0, 2], "x": 46, "y": 8 }, - { "flags": 4, "matrix": [0, 3], "x": 65, "y": 8 }, - { "flags": 4, "matrix": [0, 4], "x": 84, "y": 8 }, - { "flags": 4, "matrix": [0, 5], "x": 102, "y": 8 }, - { "flags": 4, "matrix": [0, 6], "x": 121, "y": 8 }, - { "flags": 4, "matrix": [0, 7], "x": 140, "y": 8 }, - { "flags": 4, "matrix": [0, 8], "x": 159, "y": 8 }, - { "flags": 4, "matrix": [0, 9], "x": 177, "y": 8 }, - { "flags": 4, "matrix": [0, 10], "x": 196, "y": 8 }, - { "flags": 1, "matrix": [0, 11], "x": 215, "y": 8 }, - { "flags": 1, "matrix": [1, 11], "x": 215, "y": 24 }, - { "flags": 4, "matrix": [1, 10], "x": 196, "y": 24 }, - { "flags": 4, "matrix": [1, 9], "x": 177, "y": 24 }, - { "flags": 4, "matrix": [1, 8], "x": 159, "y": 24 }, - { "flags": 4, "matrix": [1, 7], "x": 140, "y": 24 }, - { "flags": 4, "matrix": [1, 6], "x": 121, "y": 24 }, - { "flags": 4, "matrix": [1, 5], "x": 102, "y": 24 }, - { "flags": 4, "matrix": [1, 4], "x": 84, "y": 24 }, - { "flags": 4, "matrix": [1, 3], "x": 65, "y": 24 }, - { "flags": 4, "matrix": [1, 2], "x": 46, "y": 24 }, - { "flags": 4, "matrix": [1, 1], "x": 28, "y": 24 }, - { "flags": 1, "matrix": [1, 0], "x": 9, "y": 24 }, - { "flags": 1, "matrix": [2, 0], "x": 9, "y": 40 }, - { "flags": 4, "matrix": [2, 1], "x": 28, "y": 40 }, - { "flags": 4, "matrix": [2, 2], "x": 46, "y": 40 }, - { "flags": 4, "matrix": [2, 3], "x": 65, "y": 40 }, - { "flags": 4, "matrix": [2, 4], "x": 84, "y": 40 }, - { "flags": 4, "matrix": [2, 5], "x": 102, "y": 40 }, - { "flags": 4, "matrix": [2, 6], "x": 121, "y": 40 }, - { "flags": 4, "matrix": [2, 7], "x": 140, "y": 40 }, - { "flags": 4, "matrix": [2, 8], "x": 159, "y": 40 }, - { "flags": 4, "matrix": [2, 9], "x": 177, "y": 40 }, - { "flags": 4, "matrix": [2, 10], "x": 196, "y": 40 }, - { "flags": 1, "matrix": [2, 11], "x": 215, "y": 40 }, - { "flags": 1, "matrix": [3, 11], "x": 215, "y": 56 }, - { "flags": 1, "matrix": [3, 10], "x": 196, "y": 56 }, - { "flags": 1, "matrix": [3, 9], "x": 177, "y": 56 }, - { "flags": 1, "matrix": [3, 8], "x": 159, "y": 56 }, - { "flags": 1, "matrix": [3, 7], "x": 140, "y": 56 }, - { "flags": 1, "matrix": [3, 5], "x": 112, "y": 56 }, - { "flags": 1, "matrix": [3, 4], "x": 84, "y": 56 }, - { "flags": 1, "matrix": [3, 3], "x": 65, "y": 56 }, - { "flags": 1, "matrix": [3, 2], "x": 46, "y": 56 }, - { "flags": 1, "matrix": [3, 1], "x": 28, "y": 56 }, - { "flags": 1, "matrix": [3, 0], "x": 9, "y": 56 } + {"flags": 1, "matrix": [0, 0], "x": 9, "y": 8}, + {"flags": 4, "matrix": [0, 1], "x": 28, "y": 8}, + {"flags": 4, "matrix": [0, 2], "x": 46, "y": 8}, + {"flags": 4, "matrix": [0, 3], "x": 65, "y": 8}, + {"flags": 4, "matrix": [0, 4], "x": 84, "y": 8}, + {"flags": 4, "matrix": [0, 5], "x": 102, "y": 8}, + {"flags": 4, "matrix": [0, 6], "x": 121, "y": 8}, + {"flags": 4, "matrix": [0, 7], "x": 140, "y": 8}, + {"flags": 4, "matrix": [0, 8], "x": 159, "y": 8}, + {"flags": 4, "matrix": [0, 9], "x": 177, "y": 8}, + {"flags": 4, "matrix": [0, 10], "x": 196, "y": 8}, + {"flags": 1, "matrix": [0, 11], "x": 215, "y": 8}, + {"flags": 1, "matrix": [1, 11], "x": 215, "y": 24}, + {"flags": 4, "matrix": [1, 10], "x": 196, "y": 24}, + {"flags": 4, "matrix": [1, 9], "x": 177, "y": 24}, + {"flags": 4, "matrix": [1, 8], "x": 159, "y": 24}, + {"flags": 4, "matrix": [1, 7], "x": 140, "y": 24}, + {"flags": 4, "matrix": [1, 6], "x": 121, "y": 24}, + {"flags": 4, "matrix": [1, 5], "x": 102, "y": 24}, + {"flags": 4, "matrix": [1, 4], "x": 84, "y": 24}, + {"flags": 4, "matrix": [1, 3], "x": 65, "y": 24}, + {"flags": 4, "matrix": [1, 2], "x": 46, "y": 24}, + {"flags": 4, "matrix": [1, 1], "x": 28, "y": 24}, + {"flags": 1, "matrix": [1, 0], "x": 9, "y": 24}, + {"flags": 1, "matrix": [2, 0], "x": 9, "y": 40}, + {"flags": 4, "matrix": [2, 1], "x": 28, "y": 40}, + {"flags": 4, "matrix": [2, 2], "x": 46, "y": 40}, + {"flags": 4, "matrix": [2, 3], "x": 65, "y": 40}, + {"flags": 4, "matrix": [2, 4], "x": 84, "y": 40}, + {"flags": 4, "matrix": [2, 5], "x": 102, "y": 40}, + {"flags": 4, "matrix": [2, 6], "x": 121, "y": 40}, + {"flags": 4, "matrix": [2, 7], "x": 140, "y": 40}, + {"flags": 4, "matrix": [2, 8], "x": 159, "y": 40}, + {"flags": 4, "matrix": [2, 9], "x": 177, "y": 40}, + {"flags": 4, "matrix": [2, 10], "x": 196, "y": 40}, + {"flags": 1, "matrix": [2, 11], "x": 215, "y": 40}, + {"flags": 1, "matrix": [3, 11], "x": 215, "y": 56}, + {"flags": 1, "matrix": [3, 10], "x": 196, "y": 56}, + {"flags": 1, "matrix": [3, 9], "x": 177, "y": 56}, + {"flags": 1, "matrix": [3, 8], "x": 159, "y": 56}, + {"flags": 1, "matrix": [3, 7], "x": 140, "y": 56}, + {"flags": 1, "matrix": [3, 5], "x": 112, "y": 56}, + {"flags": 1, "matrix": [3, 4], "x": 84, "y": 56}, + {"flags": 1, "matrix": [3, 3], "x": 65, "y": 56}, + {"flags": 1, "matrix": [3, 2], "x": 46, "y": 56}, + {"flags": 1, "matrix": [3, 1], "x": 28, "y": 56}, + {"flags": 1, "matrix": [3, 0], "x": 9, "y": 56} ] }, "layouts": { "LAYOUT_ortho_4x12": { "layout": [ - { "matrix": [0, 12], "x": 11, "y": 0 }, - { "matrix": [0, 0], "x": 0, "y": 1 }, - { "matrix": [0, 1], "x": 1, "y": 1 }, - { "matrix": [0, 2], "x": 2, "y": 1 }, - { "matrix": [0, 3], "x": 3, "y": 1 }, - { "matrix": [0, 4], "x": 4, "y": 1 }, - { "matrix": [0, 5], "x": 5, "y": 1 }, - { "matrix": [0, 6], "x": 6, "y": 1 }, - { "matrix": [0, 7], "x": 7, "y": 1 }, - { "matrix": [0, 8], "x": 8, "y": 1 }, - { "matrix": [0, 9], "x": 9, "y": 1 }, - { "matrix": [0, 10], "x": 10, "y": 1 }, - { "matrix": [0, 11], "x": 11, "y": 1 }, - { "matrix": [1, 0], "x": 0, "y": 2 }, - { "matrix": [1, 1], "x": 1, "y": 2 }, - { "matrix": [1, 2], "x": 2, "y": 2 }, - { "matrix": [1, 3], "x": 3, "y": 2 }, - { "matrix": [1, 4], "x": 4, "y": 2 }, - { "matrix": [1, 5], "x": 5, "y": 2 }, - { "matrix": [1, 6], "x": 6, "y": 2 }, - { "matrix": [1, 7], "x": 7, "y": 2 }, - { "matrix": [1, 8], "x": 8, "y": 2 }, - { "matrix": [1, 9], "x": 9, "y": 2 }, - { "matrix": [1, 10], "x": 10, "y": 2 }, - { "matrix": [1, 11], "x": 11, "y": 2 }, - { "matrix": [2, 0], "x": 0, "y": 3 }, - { "matrix": [2, 1], "x": 1, "y": 3 }, - { "matrix": [2, 2], "x": 2, "y": 3 }, - { "matrix": [2, 3], "x": 3, "y": 3 }, - { "matrix": [2, 4], "x": 4, "y": 3 }, - { "matrix": [2, 5], "x": 5, "y": 3 }, - { "matrix": [2, 6], "x": 6, "y": 3 }, - { "matrix": [2, 7], "x": 7, "y": 3 }, - { "matrix": [2, 8], "x": 8, "y": 3 }, - { "matrix": [2, 9], "x": 9, "y": 3 }, - { "matrix": [2, 10], "x": 10, "y": 3 }, - { "matrix": [2, 11], "x": 11, "y": 3 }, - { "matrix": [3, 0], "x": 0, "y": 4 }, - { "matrix": [3, 1], "x": 1, "y": 4 }, - { "matrix": [3, 2], "x": 2, "y": 4 }, - { "matrix": [3, 3], "x": 3, "y": 4 }, - { "matrix": [3, 4], "x": 4, "y": 4 }, - { "matrix": [3, 5], "x": 5, "y": 4 }, - { "matrix": [3, 6], "x": 6, "y": 4 }, - { "matrix": [3, 7], "x": 7, "y": 4 }, - { "matrix": [3, 8], "x": 8, "y": 4 }, - { "matrix": [3, 9], "x": 9, "y": 4 }, - { "matrix": [3, 10], "x": 10, "y": 4 }, - { "matrix": [3, 11], "x": 11, "y": 4 } + {"matrix": [0, 12], "x": 11, "y": 0}, + {"matrix": [0, 0], "x": 0, "y": 1}, + {"matrix": [0, 1], "x": 1, "y": 1}, + {"matrix": [0, 2], "x": 2, "y": 1}, + {"matrix": [0, 3], "x": 3, "y": 1}, + {"matrix": [0, 4], "x": 4, "y": 1}, + {"matrix": [0, 5], "x": 5, "y": 1}, + {"matrix": [0, 6], "x": 6, "y": 1}, + {"matrix": [0, 7], "x": 7, "y": 1}, + {"matrix": [0, 8], "x": 8, "y": 1}, + {"matrix": [0, 9], "x": 9, "y": 1}, + {"matrix": [0, 10], "x": 10, "y": 1}, + {"matrix": [0, 11], "x": 11, "y": 1}, + {"matrix": [1, 0], "x": 0, "y": 2}, + {"matrix": [1, 1], "x": 1, "y": 2}, + {"matrix": [1, 2], "x": 2, "y": 2}, + {"matrix": [1, 3], "x": 3, "y": 2}, + {"matrix": [1, 4], "x": 4, "y": 2}, + {"matrix": [1, 5], "x": 5, "y": 2}, + {"matrix": [1, 6], "x": 6, "y": 2}, + {"matrix": [1, 7], "x": 7, "y": 2}, + {"matrix": [1, 8], "x": 8, "y": 2}, + {"matrix": [1, 9], "x": 9, "y": 2}, + {"matrix": [1, 10], "x": 10, "y": 2}, + {"matrix": [1, 11], "x": 11, "y": 2}, + {"matrix": [2, 0], "x": 0, "y": 3}, + {"matrix": [2, 1], "x": 1, "y": 3}, + {"matrix": [2, 2], "x": 2, "y": 3}, + {"matrix": [2, 3], "x": 3, "y": 3}, + {"matrix": [2, 4], "x": 4, "y": 3}, + {"matrix": [2, 5], "x": 5, "y": 3}, + {"matrix": [2, 6], "x": 6, "y": 3}, + {"matrix": [2, 7], "x": 7, "y": 3}, + {"matrix": [2, 8], "x": 8, "y": 3}, + |