1c6d3d0cbc52eefce3c244ed958566204b9d65a7

Author
Feags <41646528+Feags@users.noreply.github.com>
Committer
GitHub <noreply@github.com>
Date

Message

Adding new keyboard Promenade RP24S (#24689)

* adding keymaps for krado industries

* Modified default keymap.c files to be the same as via.

* Changing vendor ID for Krado Industries

* Suggested changes made

Making changes suggested by zvecr.
Removed dynamic_layer indicator, updated copyright year, deleted unused layers in keymaps.

Co-authored-by: Joel Challis <git@zvecr.com>

* rgbpin for ws2812 changed in info.json

* Added encoder mapping rule file for default keymaps; added Fn layer shortcuts to Promenade layouts

* Added rules.mk with encoder mapping for encoder boards at keymaps level.

* Deleted extra key in LAYOUT

* Update keyboards/kradoindustries/kousa/rules.mk

Move WS2812 Driver from rules.mk to info.json

Co-authored-by: jack <jack@pngu.org>

* Update keyboards/kradoindustries/kousa/info.json

Move WS2812 Driver from rules.mk to info.json

Co-authored-by: jack <jack@pngu.org>

* Update keyboards/kradoindustries/kousa/keymaps/default/keymap.c

Move WS2812 Driver from rules.mk to info.json

Co-authored-by: jack <jack@pngu.org>

* Reverting settings.json

* Encoder map code change [2]>[NUM_DIRECTIONS]

* Adding Promenade RP24S

Adding Promenade RP24S keyboard.json, default keymap, and readme

* Adding layer access to Promenade RP24S

Adding layer access to layers 1 and 2

---------

Co-authored-by: Joel Challis <git@zvecr.com>
Co-authored-by: jack <jack@pngu.org>

Diff

This diff is truncated to protect this page.

  1diff --git a/keyboards/kradoindustries/promenade_rp24s/keyboard.json b/keyboards/kradoindustries/promenade_rp24s/keyboard.json
  2new file mode 100644
  3index 0000000000000000000000000000000000000000..c0d4a7f535fb8719370b9b38683b014a077145c9
  4--- /dev/null
  5+++ b/keyboards/kradoindustries/promenade_rp24s/keyboard.json
  6@@ -0,0 +1,140 @@
  7+{
  8+    "keyboard_name": "Promenade RP24S",
  9+    "manufacturer": "Krado Industries",
 10+    "url": "https://www.kradoindustries.com/",
 11+    "maintainer": "Krado Industries",
 12+    "processor": "RP2040",
 13+    "bootloader": "rp2040",
 14+    "usb": {
 15+        "vid": "0x4B72",
 16+        "pid": "0x4B6D",
 17+        "device_version": "1.0.0"
 18+    },
 19+    "features": {
 20+        "bootmagic": true,
 21+        "mousekey": true,
 22+        "extrakey": true,
 23+        "console": false,
 24+        "command": false,
 25+        "nkro": true,
 26+        "encoder": true,
 27+        "rgblight": true
 28+    },
 29+
 30+    "encoder": {
 31+        "rotary": [
 32+            { "pin_a": "GP12", "pin_b": "GP15" },
 33+            { "pin_a": "GP12", "pin_b": "GP16" },
 34+            { "pin_a": "GP15", "pin_b": "GP18" },
 35+            { "pin_a": "GP16", "pin_b": "GP18" },
 36+            { "pin_a": "GP11", "pin_b": "GP15" },
 37+            { "pin_a": "GP16", "pin_b": "GP11" },
 38+            { "pin_a": "GP16", "pin_b": "GP15" },
 39+            { "pin_a": "GP18", "pin_b": "GP12" }
 40+        ]
 41+    },
 42+
 43+    "ws2812": {
 44+        "pin": "GP26",
 45+        "driver": "vendor"
 46+    },
 47+    "rgblight": {
 48+        "led_count": 14,
 49+        "sleep": true,
 50+        "animations": {
 51+            "alternating": true,
 52+            "breathing": true,
 53+            "christmas": true,
 54+            "knight": true,
 55+            "rainbow_mood": true,
 56+            "rainbow_swirl": true,
 57+            "rgb_test": true,
 58+            "snake": true,
 59+            "static_gradient": true,
 60+            "twinkle": true
 61+        }
 62+    },
 63+
 64+
 65+  "diode_direction": "COL2ROW",
 66+  "matrix_pins": {
 67+    "cols": ["GP20", "GP10", "GP9", "GP8", "GP7", "GP6", "GP14", "GP13", "GP5", "GP4", "GP3", "GP2", "GP1", "GP0"],
 68+    "rows": ["GP29", "GP28", "GP27", "GP19", "GP17"]
 69+  },
 70+
 71+    "layouts": {
 72+        "LAYOUT": {
 73+            "layout": [
 74+                {"matrix": [0, 0], "x":0, "y":0, "w":1.5},
 75+                {"matrix": [0, 1], "x":1.5, "y":0},
 76+                {"matrix": [0, 2], "x":2.5, "y":0},
 77+                {"matrix": [0, 3], "x":3.5, "y":0},
 78+                {"matrix": [0, 4], "x":4.5, "y":0},
 79+                {"matrix": [0, 5], "x":5.5, "y":0},
 80+                {"matrix": [0, 6], "x":6.5, "y":0},
 81+                {"matrix": [0, 7], "x":7.5, "y":0},
 82+                {"matrix": [0, 8], "x":8.5, "y":0},
 83+                {"matrix": [0, 9], "x":9.5, "y":0},
 84+                {"matrix": [0, 10], "x":10.5, "y":0},
 85+                {"matrix": [0, 11], "x":11.5, "y":0},
 86+                {"matrix": [0, 12], "x":12.5, "y":0},
 87+                {"matrix": [0, 13], "x":13.5, "y":0, "w":1.5},
 88+                {"matrix": [1, 0], "x":0, "y":1, "w":1.5},
 89+                {"matrix": [1, 1], "x":1.5, "y":1},
 90+                {"matrix": [1, 2], "x":2.5, "y":1},
 91+                {"matrix": [1, 3], "x":3.5, "y":1},
 92+                {"matrix": [1, 4], "x":4.5, "y":1},
 93+                {"matrix": [1, 5], "x":5.5, "y":1},
 94+                {"matrix": [1, 6], "x":6.5, "y":1},
 95+                {"matrix": [1, 7], "x":7.5, "y":1},
 96+                {"matrix": [1, 8], "x":8.5, "y":1},
 97+                {"matrix": [1, 9], "x":9.5, "y":1},
 98+                {"matrix": [1, 10], "x":10.5, "y":1},
 99+                {"matrix": [1, 11], "x":11.5, "y":1},
100+                {"matrix": [1, 12], "x":12.5, "y":1},
101+                {"matrix": [1, 13], "x":13.5, "y":1, "w":1.5},
102+                {"matrix": [2, 0], "x":0, "y":2, "w":1.5},
103+                {"matrix": [2, 1], "x":1.5, "y":2},
104+                {"matrix": [2, 2], "x":2.5, "y":2},
105+                {"matrix": [2, 3], "x":3.5, "y":2},
106diff --git a/keyboards/kradoindustries/promenade_rp24s/keymaps/default/keymap.c b/keyboards/kradoindustries/promenade_rp24s/keymaps/default/keymap.c
107new file mode 100644
108index 0000000000000000000000000000000000000000..ed36cc85fbb19f656defee35e76cf39414c4788c
109--- /dev/null
110+++ b/keyboards/kradoindustries/promenade_rp24s/keymaps/default/keymap.c
111@@ -0,0 +1,102 @@
112+/*
113+Copyright 2024 Matt F
114+
115+This program is free software: you can redistribute it and/or modify
116+it under the terms of the GNU General Public License as published by
117+the Free Software Foundation, either version 2 of the License, or
118+(at your option) any later version.
119+
120+This program is distributed in the hope that it will be useful,
121+but WITHOUT ANY WARRANTY; without even the implied warranty of
122+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
123+GNU General Public License for more details.
124+
125+You should have received a copy of the GNU General Public License
126+along with this program.  If not, see <http://www.gnu.org/licenses/>.
127+*/
128+
129+#include QMK_KEYBOARD_H
130+
131+
132+#define _FN      MO(3)
133+#define FN_BACK  LT(3, KC_BSPC)
134+#define ZOOMIN   C(KC_EQL)
135+#define ZOOMOUT  C(KC_MINS)
136+#define NTAB     C(KC_TAB)
137+#define BTAB     C(S(KC_TAB))
138+
139+
140+
141+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
142+  [0] = LAYOUT(
143+
144+    /* Base Layer
145+
146+
147+ * .-----------------------------------------------------------------------------------------------------------------------------------.
148+ * | Grave     | 1      | 2      | 3      | 4      | 5      | -      | =      | 6      | 7      | 8      | 9      | 0      | Backspace |
149+ * |           |        |        |        |        |        |        |        |        |        |        |        |        |           |
150+ * |-----------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+-----------|
151+ * | Tab       | Q      | W      | E      | R      | T      | [      | ]      | Y      | U      | I      | O      | P      | Del       |
152+ * |           |        |        |        |        |        |        |        |        |        |        |        |        |           |
153+ * |-----------+--------+--------+--------+--------+--------|--------+--------|--------+--------+--------+-----------------+-----------|
154+ * | FN_BACK   | A      | S      | D      | F      | G      | [      | ]      | H      | J      | K      | L      | "      | Enter     |
155+ * |           |        |        |        |        |        |        |        |        |        |        |        | '      |           |
156+ * |-----------+--------+--------+--------+--------+--------|--------+--------|--------+--------+--------------------------+-----------|
157+ * | LShift    | Z      | X      | C      | V      | B      | BTab   | NTab   | N      | M      | <      | >      | ?      | RShift    |
158+ * |           |        |        |        |        |        |        |        |        |        | ,      | .      | /      |           |
159+ * |-----------+--------+--------+--------+--------+-----------------+--------+--------+--------+-----------------+--------+-----------|
160+ * | LCTRL     | LGUI   | LALT   | FN     | Space  | Space  |Space   |Space   | Space  | Space  | Space  | RALT   | FN     | RCTRL     |
161+ * |           |        |        |        |        |        |        |        |        |        |        |        |        |           |
162+ * '-----------------------------------------------------------------------------------------------------------------------------------'
163+ */
164+
165+  KC_ESC,  KC_1,    KC_2,    KC_3,    KC_4,    KC_5,    KC_MINS, KC_EQL,  KC_6,    KC_7,    KC_8,    KC_9,    KC_0,    KC_BSPC,
166+  KC_TAB,  KC_Q,    KC_W,    KC_E,    KC_R,    KC_T,    KC_LBRC, KC_RBRC, KC_Y,    KC_U,    KC_I,    KC_O,    KC_P,    KC_DEL,
167+  FN_BACK, KC_A,    KC_S,    KC_D,    KC_F,    KC_G,    KC_LBRC, KC_RBRC, KC_H,    KC_J,    KC_K,    KC_L,    KC_QUOT, KC_ENT,
168+  SC_LSPO, KC_Z,    KC_X,    KC_C,    KC_V,    KC_B,    BTAB,    NTAB,    KC_N,    KC_M,    KC_COMM, KC_DOT,  KC_SLSH, SC_RSPC,
169+  KC_LCTL, KC_LGUI, KC_LALT, _FN,     KC_SPC,  KC_SPC,  KC_SPC,  KC_SPC,  KC_SPC,  KC_SPC,  KC_SPC,  KC_RALT, _FN,     KC_RCTL
170+  ),
171+
172+  [1] = LAYOUT( /* Layer One */
173+
174+  KC_ESC,  KC_1,    KC_2,    KC_3,    KC_4,    KC_5,    KC_MINS, KC_EQL,  KC_6,    KC_7,    KC_8,    KC_9,    KC_0,    KC_BSPC,
175+  KC_TAB,  KC_Q,    KC_W,    KC_E,    KC_R,    KC_T,    KC_LBRC, KC_RBRC, KC_Y,    KC_U,    KC_I,    KC_O,    KC_P,    KC_DEL,
176+  KC_CAPS, KC_A,    KC_S,    KC_D,    KC_F,    KC_G,    KC_LBRC, KC_RBRC, KC_H,    KC_J,    KC_K,    KC_L,    KC_QUOT, KC_ENT,
177+  KC_LSFT, KC_Z,    KC_X,    KC_C,    KC_V,    KC_B,    KC_PGUP, KC_PGDN, KC_N,    KC_M,    KC_COMM, KC_DOT,  KC_SLSH, KC_RSFT,
178+  KC_LCTL, KC_LGUI, KC_LALT, _FN,     KC_SPC,  KC_SPC,  KC_SPC,  KC_SPC,  KC_SPC,  KC_SPC,  KC_SPC,  KC_RALT, _FN,     KC_RCTL
179+  ),
180+
181+
182+  [2] = LAYOUT( /* Layer Two */
183+
184+  KC_ESC,  KC_1,    KC_2,    KC_3,    KC_4,    KC_5,    KC_MINS, KC_EQL,  KC_6,    KC_7,    KC_8,    KC_9,    KC_0,    KC_BSPC,
185+  KC_TAB,  KC_Q,    KC_W,    KC_E,    KC_R,    KC_T,    ZOOMIN,  KC_RBRC, KC_Y,    KC_U,    KC_I,    KC_O,    KC_P,    KC_DEL,
186+  FN_BACK, KC_A,    KC_S,    KC_D,    KC_F,    KC_G,    KC_LBRC, KC_RBRC, KC_H,    KC_J,    KC_K,    KC_L,    KC_QUOT, KC_ENT,
187+  KC_LSFT, KC_Z,    KC_X,    KC_C,    KC_V,    KC_B,    ZOOMOUT, KC_LBRC, KC_N,    KC_M,    KC_COMM, KC_DOT,  KC_SLSH, KC_RSFT,
188+  KC_LCTL, KC_LGUI, KC_LALT, _FN,     KC_SPC,  KC_SPC,  KC_SPC,  KC_SPC,  KC_SPC,  KC_SPC,  KC_SPC,  KC_RALT, _FN,     KC_RCTL
189+  ),
190+
191+  [3] = LAYOUT( /* Layer Three */
192+
193+  KC_GRV,  KC_F1,   KC_F2,   KC_F3,   KC_F4,   KC_F5,   KC_F6,   KC_F7,   KC_F8,   KC_F9,   KC_F10,  KC_F11,  KC_F12,  KC_DEL,
194+  _______, KC_HOME, KC_UP,   KC_END,  KC_PGUP, _______, DF(0)  , DF(1)  , _______, _______, _______, _______, KC_PSCR, KC_BSLS,
195+  _______, KC_LEFT, KC_DOWN, KC_RGHT, KC_PGDN, _______, _______, _______, _______, _______, _______, _______, KC_SCLN, KC_QUOT,
196+  _______, _______, _______, _______, _______, _______, DF(2)  , _______, _______, KC_MUTE, KC_VOLD, KC_VOLU, KC_BSLS, KC_CAPS,
197+  _______, _______, _______, _______, _______, _______, KC_ENT,  KC_ENT,  _______, _______, _______, _______, _______, QK_BOOT
198+  )
199+
200+};
201+
202+#if defined(ENCODER_MAP_ENABLE)
203+const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
204+    [0]       = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU),       ENCODER_CCW_CW(UG_NEXT, UG_PREV),                                               
205+                  ENCODER_CCW_CW(KC_LBRC, KC_RBRC),       ENCODER_CCW_CW(C(KC_MINS), C(KC_EQL)),                                           
206+                  ENCODER_CCW_CW(C(KC_Z), C(S(KC_Z))),    ENCODER_CCW_CW(KC_PGUP, KC_PGDN),        
207+                  ENCODER_CCW_CW(KC_WH_U, KC_WH_D),       ENCODER_CCW_CW(KC_UP, KC_DOWN)},
208+    [1 ... 3] = { ENCODER_CCW_CW(_______, _______),       ENCODER_CCW_CW(_______, _______),                                               
209+                  ENCODER_CCW_CW(_______, _______),       ENCODER_CCW_CW(_______, _______),                                               
210+                  ENCODER_CCW_CW(_______, _______),       ENCODER_CCW_CW(_______, _______),       
211diff --git a/keyboards/kradoindustries/promenade_rp24s/keymaps/default/rules.mk b/keyboards/kradoindustries/promenade_rp24s/keymaps/default/rules.mk
212new file mode 100644
213index 0000000000000000000000000000000000000000..a40474b4d5c71c0cb5b821bec0ab63c175cdc43d
214--- /dev/null
215+++ b/keyboards/kradoindustries/promenade_rp24s/keymaps/default/rules.mk
216@@ -0,0 +1 @@
217+ENCODER_MAP_ENABLE = yes
218diff --git a/keyboards/kradoindustries/promenade_rp24s/readme.md b/keyboards/kradoindustries/promenade_rp24s/readme.md
219new file mode 100644
220index 0000000000000000000000000000000000000000..9685cb8296353068f80b9d12f34dbf92ed37d599
221--- /dev/null
222+++ b/keyboards/kradoindustries/promenade_rp24s/readme.md
223@@ -0,0 +1,29 @@
224+# Promenade RP24S 
225+
226+![Promenade RP24S](https://i.imgur.com/uQOhmmJ.jpeg)
227+