07fce7ba13ee2d166fe2f18ef8d9ef622eace446

Author
bluepylons <jwang757@bu.edu>
Committer
GitHub <noreply@github.com>
Date

Message

[Keyboard] add Boston keyboard (#11273)

* Added boston keyboard

* Added Boston keyboard

* Changed some keycodes, added layers, added encoder layer change, added RGB layer indicator

* Cleaned up whitespace

* Update config.h

Cleaned up whitespace

* Cleaned up whitespace

* Added keyboard_post_init_kb code for RGBLEDs so that they start on a defined color

* Modified layout so that split backspace right is at a more intuitive location for configurator

* Cleaned up whitespace, changed some labels

* Modified keymap to accommodate revised layout in boston.h

* Removed "on port C6" from Line 20 (committed suggestion)

* Removed "Encoder Enable" from Line 8 (committed suggestion)

* Removed empty #define DESCRIPTION as suggested

* Implemented lock LED changes as suggested by drashna

* Implemented lock LED changes as suggested by Drashna, changed WS2812 driver byte order

* Updated HSV color  codes to reflect WS2812 byte order change

* Implemented suggestion from noroadsleft

* Implemented suggestion from noroadsleft

* Updated readm.md per suggestions from noroadsleft

* Update keyboards/boston/readme.md per noroadsleft's suggestion

* Removed empty layers from default keymap

* Stripped empty layers and much code from default keymap ; moved to RGB Light Layers keycap

Diff

This diff is truncated to protect this page.

  1diff --git a/keyboards/boston/boston.c b/keyboards/boston/boston.c
  2new file mode 100644
  3index 0000000000000000000000000000000000000000..2bcac21cba943b29c8c44a4e6931bed89d3eafda
  4--- /dev/null
  5+++ b/keyboards/boston/boston.c
  6@@ -0,0 +1,24 @@
  7+/* Copyright 2020 Pylon
  8+ *
  9+ * This program is free software: you can redistribute it and/or modify
 10+ * it under the terms of the GNU General Public License as published by
 11+ * the Free Software Foundation, either version 3 of the License, or
 12+ * (at your option) any later version.
 13+ *
 14+ * This program is distributed in the hope that it will be useful,
 15+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
 16+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 17+ * GNU General Public License for more details.
 18+ *
 19+ * You should have received a copy of the GNU General Public License
 20+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 21+ */
 22+
 23+#include "boston.h"
 24+
 25+void keyboard_post_init_kb(void) {
 26+    /* this is to set an LED color at startup so it's not some random color*/
 27+    rgblight_enable_noeeprom(); 
 28+    rgblight_sethsv_noeeprom(0, 0, 128); 
 29+    keyboard_post_init_user();
 30+}
 31diff --git a/keyboards/boston/boston.h b/keyboards/boston/boston.h
 32new file mode 100644
 33index 0000000000000000000000000000000000000000..db245c5c295e5ab3e26c2e0238789d54e2b30d15
 34--- /dev/null
 35+++ b/keyboards/boston/boston.h
 36@@ -0,0 +1,40 @@
 37+/* Copyright 2020 Pylon
 38+ *
 39+ * This program is free software: you can redistribute it and/or modify
 40+ * it under the terms of the GNU General Public License as published by
 41+ * the Free Software Foundation, either version 3 of the License, or
 42+ * (at your option) any later version.
 43+ *
 44+ * This program is distributed in the hope that it will be useful,
 45+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
 46+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 47+ * GNU General Public License for more details.
 48+ *
 49+ * You should have received a copy of the GNU General Public License
 50+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 51+ */
 52+
 53+#pragma once
 54+
 55+#include "quantum.h"
 56+
 57+#define ___ KC_NO
 58+
 59+#define LAYOUT_all( \
 60+	K00,  K01, K02, K03, K04,  K05, K06, K07, K08,  K09, K0A, K0B, K0C,    K0D, K0E, K0F,   K0G, K0H, K0I, \
 61+	K10,  K11, K12, K13, K14,  K15, K16, K17, K18,  K19, K1A, K1B, K1C,    K1D, K1E, K1F,   K1G, K1H, K1I, \
 62+	K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K5E,  K2E,        K2F, K2G, K2H, K2I, \
 63+	K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D,       K3E,        K3F, K3G, K3H, K3I, \
 64+	K40, K41, K42, K43, K44, K45, K46, K47, K48, K49, K4A, K4B, K4C, K4D,       K4E,        K4F, K4G, K4H, K4I, \
 65+	K50, K51, K52, K53, K54, K55, K56, K57, K58, K59, K5A, K5B, K5C,            K5D,        K5F, K5G, K5H, K5I, \
 66+    K60, K61, K62,      K64, K65,      K67,      K69, K6A, K6B,            K6C, K6D, K6E,   K6F, K6G, K6H \
 67+	) \
 68+    { \
 69+        {K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, K0F, K0G, K0H, K0I}, \
 70+        {K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E, K1F, K1G, K1H, K1I}, \
 71+        {K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E, K2F, K2G, K2H, K2I}, \
 72+        {K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, K3F, K3G, K3H, K3I}, \
 73+        {K40, K41, K42, K43, K44, K45, K46, K47, K48, K49, K4A, K4B, K4C, K4D, K4E, K4F, K4G, K4H, K4I}, \
 74+        {K50, K51, K52, K53, K54, K55, K56, K57, K58, K59, K5A, K5B, K5C, K5D, K5E, K5F, K5G, K5H, K5I}, \
 75+        {K60, K61, K62, ___, K64, K65, ___, K67, ___, K69, K6A, K6B, K6C, K6D, K6E, K6F, K6G, K6H, ___ } \
 76+    }
 77diff --git a/keyboards/boston/chconf.h b/keyboards/boston/chconf.h
 78new file mode 100644
 79index 0000000000000000000000000000000000000000..7ac8a7de5d549b8fc371ec311c3e31e7455ec183
 80--- /dev/null
 81+++ b/keyboards/boston/chconf.h
 82@@ -0,0 +1,700 @@
 83+/*
 84+    ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
 85+
 86+    Licensed under the Apache License, Version 2.0 (the "License");
 87+    you may not use this file except in compliance with the License.
 88+    You may obtain a copy of the License at
 89+
 90+        http://www.apache.org/licenses/LICENSE-2.0
 91+
 92+    Unless required by applicable law or agreed to in writing, software
 93+    distributed under the License is distributed on an "AS IS" BASIS,
 94+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 95+    See the License for the specific language governing permissions and
 96+    limitations under the License.
 97+*/
 98+
 99+/**
100+ * @file    rt/templates/chconf.h
101+ * @brief   Configuration file template.
102+ * @details A copy of this file must be placed in each project directory, it
103+ *          contains the application specific kernel settings.
104+ *
105+ * @addtogroup config
106+ * @details Kernel related settings and hooks.
107+ * @{
108+ */
109+
110+#ifndef CHCONF_H
111+#    define CHCONF_H
112+
113+#    define _CHIBIOS_RT_CONF_
114+#    define _CHIBIOS_RT_CONF_VER_6_0_
115+
116+/*===========================================================================*/
117+/**
118+ * @name System timers settings
119+ * @{
120+ */
121+/*===========================================================================*/
122+
123+/**
124+ * @brief   System time counter resolution.
125+ * @note    Allowed values are 16 or 32 bits.
126+ */
127+#    if !defined(CH_CFG_ST_RESOLUTION)
128+#        define CH_CFG_ST_RESOLUTION 32
129+#    endif
130+
131+/**
132+ * @brief   System tick frequency.
133+ * @details Frequency of the system timer that drives the system ticks. This
134+ *          setting also defines the system tick time unit.
135+ */
136+#    if !defined(CH_CFG_ST_FREQUENCY)
137+#        define CH_CFG_ST_FREQUENCY 10000
138+#    endif
139+
140+/**
141+ * @brief   Time intervals data size.
142+ * @note    Allowed values are 16, 32 or 64 bits.
143+ */
144+#    if !defined(CH_CFG_INTERVALS_SIZE)
145+#        define CH_CFG_INTERVALS_SIZE 32
146+#    endif
147+
148+/**
149+ * @brief   Time types data size.
150+ * @note    Allowed values are 16 or 32 bits.
151+ */
152+#    if !defined(CH_CFG_TIME_TYPES_SIZE)
153+#        define CH_CFG_TIME_TYPES_SIZE 32
154+#    endif
155+
156+/**
157+ * @brief   Time delta constant for the tick-less mode.
158+ * @note    If this value is zero then the system uses the classic
159+ *          periodic tick. This value represents the minimum number
160+ *          of ticks that is safe to specify in a timeout directive.
161+ *          The value one is not valid, timeouts are rounded up to
162+ *          this value.
163+ */
164+#    if !defined(CH_CFG_ST_TIMEDELTA)
165+#        define CH_CFG_ST_TIMEDELTA 2
166+#    endif
167+
168+/** @} */
169+
170+/*===========================================================================*/
171+/**
172+ * @name Kernel parameters and options
173+ * @{
174+ */
175+/*===========================================================================*/
176+
177+/**
178+ * @brief   Round robin interval.
179+ * @details This constant is the number of system ticks allowed for the
180+ *          threads before preemption occurs. Setting this value to zero
181+ *          disables the preemption for threads with equal priority and the
182diff --git a/keyboards/boston/config.h b/keyboards/boston/config.h
183new file mode 100644
184index 0000000000000000000000000000000000000000..7fa5d0ef5dc7f311044c7ed83245f3d21d87b851
185--- /dev/null
186+++ b/keyboards/boston/config.h
187@@ -0,0 +1,92 @@
188+/* Copyright 2020 Pylon
189+ *
190+ * This program is free software: you can redistribute it and/or modify
191+ * it under the terms of the GNU General Public License as published by
192+ * the Free Software Foundation, either version 3 of the License, or
193+ * (at your option) any later version.
194+ *
195+ * This program is distributed in the hope that it will be useful,
196+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
197+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
198+ * GNU General Public License for more details.
199+ *
200+ * You should have received a copy of the GNU General Public License
201+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
202+ */
203+
204+#pragma once
205+
206+/* USB Device descriptor parameter */
207+#define VENDOR_ID 0xAC11
208+#define PRODUCT_ID 0x4175
209+#define DEVICE_VER 0x0001
210+#define MANUFACTURER Pylon
211+#define PRODUCT Boston
212+/* key matrix size */
213+#define MATRIX_ROWS 7
214+#define MATRIX_COLS 19
215+
216+#define MATRIX_COL_PINS \
217+    { B10, B11, B12, B13, B14, B15, A8, A9, A10, A15, B3, B4, B7, B8, B9, C14, C15, F0, A3 }
218+#define MATRIX_ROW_PINS \
219+    { B5, B6, A7, B0, B1, B2, A4 }
220+#define DIODE_DIRECTION COL2ROW
221+
222+#define BACKLIGHT_PIN A6
223+#define BACKLIGHT_PWM_DRIVER PWMD3
224+#define BACKLIGHT_PWM_CHANNEL 1
225+#define BACKLIGHT_PAL_MODE 1
226+#define BACKLIGHT_LEVELS 6
227+#define BACKLIGHT_BREATHING
228+#define BREATHING_PERIOD 6
229+
230+/* define if matrix has ghost */
231+//#define MATRIX_HAS_GHOST
232+
233+/* Set 0 if debouncing isn't needed */
234+#define DEBOUNCE 5
235+
236+/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
237+#define LOCKING_SUPPORT_ENABLE
238+/* Locking resynchronize hack */
239+#define LOCKING_RESYNC_ENABLE
240+
241+/* Define RGBLED */
242+#define RGB_DI_PIN A5
243+#define RGBLED_NUM 1
244+#define RGBLIGHT_ANIMATIONS
245+#define RGBLIGHT_LAYERS
246+
247+//The 3D-printed version of Boston uses APA106 LEDs, which are reversed 
248+#define WS2812_BYTE_ORDER WS2812_BYTE_ORDER_RGB
249+
250+/* Define encoder */
251+#define ENCODERS_PAD_A \
252+    { C13 }
253+#define ENCODERS_PAD_B \
254+    { F1 }
255+#define ENCODER_RESOLUTION 2
256+#define TAP_CODE_DELAY 15
257+
258+/* Lock LEDs */
259+#define LED_NUM_LOCK_PIN A0
260+#define LED_CAPS_LOCK_PIN A1
261+#define LED_SCROLL_LOCK_PIN A2
262+
263+/*
264+ * Feature disable options
265+ *  These options are also useful to firmware size reduction.
266+ */
267+
268+/* disable debug print */
269+//#define NO_DEBUG
270+
271+/* disable print */
272+//#define NO_PRINT
273+
274+/* disable action features */
275+//#define NO_ACTION_LAYER
276+//#define NO_ACTION_TAPPING
277+//#define NO_ACTION_ONESHOT
278+//#define NO_ACTION_MACRO
279+//#define NO_ACTION_FUNCTION
280diff --git a/keyboards/boston/halconf.h b/keyboards/boston/halconf.h
281new file mode 100644
282index 0000000000000000000000000000000000000000..4d46d4e290fd6cf2b822125e3e8dc63d2e4986ad
283--- /dev/null
284+++ b/keyboards/boston/halconf.h
285@@ -0,0 +1,524 @@
286+/*
287+    ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
288+
289+    Licensed under the Apache License, Version 2.0 (the "License");
290+    you may not use this file except in compliance with the License.
291+    You may obtain a copy of the License at
292+
293+        http://www.apache.org/licenses/LICENSE-2.0
294+
295+    Unless required by applicable law or agreed to in writing, software
296+    distributed under the License is distributed on an "AS IS" BASIS,
297+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
298+    See the License for the specific language governing permissions and
299+    limitations under the License.
300+*/
301+
302+/**
303+ * @file    templates/halconf.h
304+ * @brief   HAL configuration header.
305+ * @details HAL configuration file, this file allows to enable or disable the
306+ *          various device drivers from your application. You may also use
307+ *          this file in order to override the device drivers default settings.
308+ *
309+ * @addtogroup HAL_CONF
310+ * @{
311+ */
312+
313+#ifndef HALCONF_H
314+#    define HALCONF_H
315+
316+#    define _CHIBIOS_HAL_CONF_
317+#    define _CHIBIOS_HAL_CONF_VER_7_0_
318+
319+#    include "mcuconf.h"
320+
321+/**
322+ * @brief   Enables the PAL subsystem.
323+ */
324+#    if !defined(HAL_USE_PAL) || defined(__DOXYGEN__)
325+#        define HAL_USE_PAL TRUE
326+#    endif
327+
328+/**
329+ * @brief   Enables the ADC subsystem.
330+ */
331+#    if !defined(HAL_USE_ADC) || defined(__DOXYGEN__)
332+#        define HAL_USE_ADC FALSE
333+#    endif
334+
335+/**
336+ * @brief   Enables the CAN subsystem.
337+ */
338+#    if !defined(HAL_USE_CAN) || defined(__DOXYGEN__)
339+#        define HAL_USE_CAN FALSE
340+#    endif
341+
342+/**
343+ * @brief   Enables the cryptographic subsystem.
344+ */
345+#    if !defined(HAL_USE_CRY) || defined(__DOXYGEN__)
346+#        define HAL_USE_CRY FALSE
347+#    endif
348+
349+/**
350+ * @brief   Enables the DAC subsystem.
351+ */
352+#    if !defined(HAL_USE_DAC) || defined(__DOXYGEN__)
353+#        define HAL_USE_DAC FALSE
354+#    endif
355+
356+/**
357+ * @brief   Enables the GPT subsystem.
358+ */
359+#    if !defined(HAL_USE_GPT) || defined(__DOXYGEN__)
360+#        define HAL_USE_GPT FALSE
361+#    endif
362+
363+/**
364+ * @brief   Enables the I2C subsystem.
365+ */
366+#    if !defined(HAL_USE_I2C) || defined(__DOXYGEN__)
367+#        define HAL_USE_I2C TRUE
368+#    endif
369+
370+/**
371+ * @brief   Enables the I2S subsystem.
372+ */
373+#    if !defined(HAL_USE_I2S) || defined(__DOXYGEN__)
374+#        define HAL_USE_I2S FALSE
375+#    endif
376+
377+/**
378+ * @brief   Enables the ICU subsystem.
379+ */
380+#    if !defined(HAL_USE_ICU) || defined(__DOXYGEN__)
381+#        define HAL_USE_ICU FALSE
382+#    endif
383+
384+/**
385diff --git a/keyboards/boston/info.json b/keyboards/boston/info.json
386new file mode 100644
387index 0000000000000000000000000000000000000000..be4b6bc60742574cd7ff788e30c06a579390bffa
388--- /dev/null
389+++ b/keyboards/boston/info.json
390@@ -0,0 +1,147 @@
391+{
392+    "keyboard_name": "boston", 
393+    "url": "https://github.com/bluepylons/Boston", 
394+    "maintainer": "Pylon", 
395+    "width": 20.5, 
396+    "height": 7.75, 
397+    "layouts": {
398+        "LAYOUT": {
399+            "layout": [
400+                {"label":"P1", "x":1.5, "y":0},
401+                {"label":"P2", "x":2.5, "y":0},
402+                {"label":"P3", "x":3.5, "y":0},
403+                {"label":"P4", "x":4.5, "y":0},
404+                {"label":"P5", "x":5.75, "y":0},
405+                {"label":"P6", "x":6.75, "y":0},
406+                {"label":"P7", "x":7.75, "y":0},
407+                {"label":"P8", "x":8.75, "y":0},
408+                {"label":"P9", "x":10, "y":0},
409+                {"label":"P10", "x":11, "y":0},
410+                {"label":"P11", "x":12, "y":0},
411+                {"label":"P12", "x":13, "y":0},
412+                {"label":"P13", "x":14.25, "y":0},
413+                {"label":"P14", "x":15.25, "y":0},
414+                {"label":"P15", "x":16.25, "y":0},
415+                {"label":"Insert", "x":17.5, "y":0},
416+                {"label":"Home", "x":18.5, "y":0},
417+                {"label":"PgUp", "x":19.5, "y":0},
418+                {"label":"Esc", "x":0, "y":1},
419+                {"label":"F1", "x":1.5, "y":1},
420+                {"label":"F2", "x":2.5, "y":1},
421+                {"label":"F3", "x":3.5, "y":1},
422+                {"label":"F4", "x":4.5, "y":1},
423+                {"label":"F5", "x":5.75, "y":1},
424+                {"label":"F6", "x":6.75, "y":1},
425+                {"label":"F7", "x":7.75, "y":1},
426+                {"label":"F8", "x":8.75, "y":1},
427+                {"label":"F9", "x":10, "y":1},
428+                {"label":"F10", "x":11, "y":1},
429+                {"label":"F11", "x":12, "y":1},
430+                {"label":"F12", "x":13, "y":1},
431+                {"label":"Print Screen", "x":14.25, "y":1},
432+                {"label":"Scroll Lock", "x":15.25, "y":1},
433+                {"label":"Pause", "x":16.25, "y":1},
434+                {"label":"Delete", "x":17.5, "y":1},
435+                {"label":"End", "x":18.5, "y":1},
436+                {"label":"PgDn", "x":19.5, "y":1},
437+
438+                {"label":"~", "x":0, "y":2.5},
439+                {"label":"!", "x":1, "y":2.5},
440+                {"label":"@", "x":2, "y":2.5},
441+                {"label":"#", "x":3, "y":2.5},
442+                {"label":"$", "x":4, "y":2.5},
443+                {"label":"%", "x":5, "y":2.5},
444+                {"label":"^", "x":6, "y":2.5},
445+                {"label":"&", "x":7, "y":2.5},
446+                {"label":"*", "x":8, "y":2.5},
447+                {"label":"(", "x":9, "y":2.5},
448+                {"label":")", "x":10, "y":2.5},
449+                {"label":"_", "x":11, "y":2.5}, 
450+                {"label":"+", "x":12, "y":2.5}, 
451+                {"label":"Backspace", "x":13, "y":2.5}, 
452+                {"label":"Backspace", "x":14, "y":2.5}, 
453+                {"label":"P16", "x":15.25, "y":2.5}, 
454+                {"label":"Num Lock", "x":16.5, "y":2.5},
455+                {"label":"/", "x":17.5, "y":2.5},
456+                {"label":"*", "x":18.5, "y":2.5},
457+                {"label":"-", "x":19.5, "y":2.5},
458+
459+                {"label":"Tab", "x":0, "y":3.5, "w":1.5},
460+                {"label":"Q", "x":1.5, "y":3.5},
461+                {"label":"W", "x":2.5, "y":3.5},
462+                {"label":"E", "x":3.5, "y":3.5},
463+                {"label":"R", "x":4.5, "y":3.5},
464+                {"label":"T", "x":5.5, "y":3.5},
465+                {"label":"Y", "x":6.5, "y":3.5},
466+                {"label":"U", "x":7.5, "y":3.5},
467+                {"label":"I", "x":8.5, "y":3.5},
468+                {"label":"O", "x":9.5, "y":3.5},
469+                {"label":"P", "x":10.5, "y":3.5},
470+                {"label":"{", "x":11.5, "y":3.5},
471+                {"label":"}", "x":12.5, "y":3.5},
472+                {"label":"|", "x":13.5, "y":3.5, "w":1.5},
473+                {"label":"P17", "x":15.25, "y":3.5},
474+                {"label":"7", "x":16.5, "y":3.5},
475+                {"label":"8", "x":17.5, "y":3.5},
476+                {"label":"9", "x":18.5, "y":3.5},
477+                {"label":"-", "x":19.5, "y":3.5},
478+
479+                {"label":"Caps Lock", "x":0, "y":4.5, "w":1.75},
480+                {"label":"A", "x":1.75, "y":4.5},
481+                {"label":"S", "x":2.75, "y":4.5},
482+                {"label":"D", "x":3.75, "y":4.5},
483+                {"label":"F", "x":4.75, "y":4.5},
484+                {"label":"G", "x":5.75, "y":4.5},
485+                {"label":"H", "x":6.75, "y":4.5},
486+                {"label":"J", "x":7.75, "y":4.5},
487+                {"label":"K", "x":8.75, "y":4.5},
488+                {"label":"L", "x":9.75, "y":4.5},
489+                {"label":"'", "x":10.75, "y":4.5},
490diff --git a/keyboards/boston/keymaps/default/keymap.c b/keyboards/boston/keymaps/default/keymap.c
491new file mode 100644
492index 0000000000000000000000000000000000000000..6a3cc1e60a41f2b5be9b91e6ac53794cad838f9e
493--- /dev/null
494+++ b/keyboards/boston/keymaps/default/keymap.c
495@@ -0,0 +1,52 @@
496+/* Copyright 2020 Pylon
497+ *
498+ * This program is free software: you can redistribute it and/or modify
499+ * it under the terms of the GNU General Public License as published by
500+ * the Free Software Foundation, either version 3 of the License, or
501+ * (at your option) any later version.
502+ *
503+ * This program is distributed in the hope that it will be useful,
504+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
505+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
506+ * GNU General Public License for more details.
507+ *
508+ * You should have received a copy of the GNU General Public License
509+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
510+ */
511+
512+#include QMK_KEYBOARD_H
513+
514+    /* Due to how the matrix is setup - the right split backspace key is, for firmware purposes the key to the right of up arrow, which on the actual keyboard is a blocker*/
515+
516+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
517+   [0] = LAYOUT_all(
518+	KC_MUTE, KC_F13 , KC_F14 , KC_F15 , KC_F16 , KC_F17 , KC_F18 , KC_F19 , KC_F20 , KC_F21 , KC_F22 , KC_F23 , KC_F24 ,                  KC_MPRV, KC_MPLY,  KC_MNXT ,          KC_INS , KC_HOME, KC_PGUP, 
519+    KC_ESC , 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_PSCR, KC_SLCK,  KC_PAUSE,          KC_DEL , KC_END , KC_PGDN,
520+    KC_GRV , KC_1   , KC_2   , KC_3   , KC_4   , KC_5   , KC_6   , KC_7   , KC_8   , KC_9   , KC_0   , KC_MINS, KC_EQL ,  KC_BSPC, KC_BSPC,        KC_CALC,           KC_NLCK , KC_PSLS, KC_PAST, KC_PMNS,
521+    KC_TAB , KC_Q   , KC_W   , KC_E   , KC_R   , KC_T   , KC_Y   , KC_U   , KC_I   , KC_O   , KC_P   , KC_LBRC, KC_RBRC,  KC_BSLS,                 RGB_TOG,           KC_P7   , KC_P8  , KC_P9  , KC_PEQL,
522+    KC_CAPS, KC_A   , KC_S   , KC_D   , KC_F   , KC_G   , KC_H   , KC_J   , KC_K   , KC_L   , KC_SCLN, KC_QUOT, KC_ENT ,  KC_ENT ,                 KC_MSEL,           KC_P4   , KC_P5  , KC_P6  , KC_PPLS,
523+    KC_LSFT, KC_BSLS, KC_Z   , KC_X   , KC_C   , KC_V   , KC_B   , KC_N   , KC_M   , KC_COMM, KC_DOT , KC_SLSH, KC_RSFT,                           KC_UP  ,           KC_P1   , KC_P2  , KC_P3  , KC_PENT,
524+    KC_LCTL, KC_LGUI, KC_LALT,          KC_SPC , KC_SPC , KC_SPC ,                   KC_RALT, KC_APP , KC_RCTL,                          KC_LEFT,  KC_DOWN, KC_RGHT,  KC_P0   , KC_P0  , KC_PDOT 
525+    ),
526+    
527+   [1] = LAYOUT_all(
528+   
529+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,                  _______, _______,  _______ ,          _______, _______, _______, 
530+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,                  _______, _______,  _______ ,          _______, _______, _______,
531+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,  _______, _______,        _______,           _______ , _______, _______, _______,
532+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,  _______,                 _______,           _______ , _______, _______, _______,
533+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,  _______,                 _______,           _______ , _______, _______, _______,
534+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,                           _______,           _______ , _______, _______, _______,
535+    _______,_______,_______ ,         _______ ,_______ ,_______ ,                  _______ ,_______ ,_______ ,                          _______,  _______, _______,  _______ , _______, _______ 
536+    ),
537+
538+}; 
539+
540+void encoder_update_user(uint8_t index, bool clockwise) {
541+	if (clockwise) {
542+        tap_code(KC_VOLU);
543+		} 
544+    else {
545+        tap_code(KC_VOLD);
546+		}
547+	}
548diff --git a/keyboards/boston/keymaps/rgb-light-layers/keymap.c b/keyboards/boston/keymaps/rgb-light-layers/keymap.c
549new file mode 100644
550index 0000000000000000000000000000000000000000..44e3df70f51bebe8481669ff1e49b241d0ea70f1
551--- /dev/null
552+++ b/keyboards/boston/keymaps/rgb-light-layers/keymap.c
553@@ -0,0 +1,223 @@
554+/* Copyright 2020 Pylon
555+ *
556+ * This program is free software: you can redistribute it and/or modify
557+ * it under the terms of the GNU General Public License as published by
558+ * the Free Software Foundation, either version 3 of the License, or
559+ * (at your option) any later version.
560+ *
561+ * This program is distributed in the hope that it will be useful,
562+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
563+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
564+ * GNU General Public License for more details.
565+ *
566+ * You should have received a copy of the GNU General Public License
567+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
568+ */
569+
570+#include QMK_KEYBOARD_H
571+
572+    /* Due to how the matrix is setup - the right split backspace key is, for firmware purposes the key to the right of up arrow, which on the actual keyboard is a blocker*/
573+
574+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
575+   [0] = LAYOUT_all(
576+	KC_MUTE, KC_F13 , KC_F14 , KC_F15 , KC_F16 , KC_F17 , KC_F18 , KC_F19 , KC_F20 , KC_F21 , KC_F22 , KC_F23 , KC_F24 ,                  KC_MPRV, KC_MPLY,  KC_MNXT ,          KC_INS , KC_HOME, KC_PGUP, 
577+    KC_ESC , 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_PSCR, KC_SLCK,  KC_PAUSE,          KC_DEL , KC_END , KC_PGDN,
578+    KC_GRV , KC_1   , KC_2   , KC_3   , KC_4   , KC_5   , KC_6   , KC_7   , KC_8   , KC_9   , KC_0   , KC_MINS, KC_EQL ,  KC_BSPC, KC_BSPC,        KC_CALC,           KC_NLCK , KC_PSLS, KC_PAST, KC_PMNS,
579+    KC_TAB , KC_Q   , KC_W   , KC_E   , KC_R   , KC_T   , KC_Y   , KC_U   , KC_I   , KC_O   , KC_P   , KC_LBRC, KC_RBRC,  KC_BSLS,                 RGB_TOG,           KC_P7   , KC_P8  , KC_P9  , KC_PEQL,
580+    KC_CAPS, KC_A   , KC_S   , KC_D   , KC_F   , KC_G   , KC_H   , KC_J   , KC_K   , KC_L   , KC_SCLN, KC_QUOT, KC_ENT ,  KC_ENT ,                 KC_MSEL,           KC_P4   , KC_P5  , KC_P6  , KC_PPLS,
581+    KC_LSFT, KC_BSLS, KC_Z   , KC_X   , KC_C   , KC_V   , KC_B   , KC_N   , KC_M   , KC_COMM, KC_DOT , KC_SLSH, KC_RSFT,                           KC_UP  ,           KC_P1   , KC_P2  , KC_P3  , KC_PENT,
582+    KC_LCTL, KC_LGUI, KC_LALT,          KC_SPC , KC_SPC , KC_SPC ,                   KC_RALT, KC_APP , KC_RCTL,                          KC_LEFT,  KC_DOWN, KC_RGHT,  KC_P0   , KC_P0  , KC_PDOT 
583+    ),
584+    
585+   [1] = LAYOUT_all(
586+   
587+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,                  _______, _______,  _______ ,          _______, _______, _______, 
588+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,                  _______, _______,  _______ ,          _______, _______, _______,
589+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,  _______, _______,        _______,           _______ , _______, _______, _______,
590+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,  _______,                 _______,           _______ , _______, _______, _______,
591+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,  _______,                 _______,           _______ , _______, _______, _______,
592+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,                           _______,           _______ , _______, _______, _______,
593+    _______,_______,_______ ,         _______ ,_______ ,_______ ,                  _______ ,_______ ,_______ ,                          _______,  _______, _______,  _______ , _______, _______ 
594+    ),
595+
596+   [2] = LAYOUT_all(
597+   
598+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,                  _______, _______,  _______ ,          _______, _______, _______, 
599+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,                  _______, _______,  _______ ,          _______, _______, _______,
600+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,  _______, _______,        _______,           _______ , _______, _______, _______,
601+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,  _______,                 _______,           _______ , _______, _______, _______,
602+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,  _______,                 _______,           _______ , _______, _______, _______,
603+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,                           _______,           _______ , _______, _______, _______,
604+    _______,_______,_______ ,         _______ ,_______ ,_______ ,                  _______ ,_______ ,_______ ,                          _______,  _______, _______,  _______ , _______, _______ 
605+    ),
606+    
607+   [3] = LAYOUT_all(
608+   
609+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,                  _______, _______,  _______ ,          _______, _______, _______, 
610+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,                  _______, _______,  _______ ,          _______, _______, _______,
611+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,  _______, _______,        _______,           _______ , _______, _______, _______,
612+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,  _______,                 _______,           _______ , _______, _______, _______,
613+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,  _______,                 _______,           _______ , _______, _______, _______,
614+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,                           _______,           _______ , _______, _______, _______,
615+    _______,_______,_______ ,         _______ ,_______ ,_______ ,                  _______ ,_______ ,_______ ,                          _______,  _______, _______,  _______ , _______, _______ 
616+    ),
617+    
618+   [4] = LAYOUT_all(
619+   
620+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,                  _______, _______,  _______ ,          _______, _______, _______, 
621+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,                  _______, _______,  _______ ,          _______, _______, _______,
622+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,  _______, _______,        _______,           _______ , _______, _______, _______,
623+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,  _______,                 _______,           _______ , _______, _______, _______,
624+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,  _______,                 _______,           _______ , _______, _______, _______,
625+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,                           _______,           _______ , _______, _______, _______,
626+    _______,_______,_______ ,         _______ ,_______ ,_______ ,                  _______ ,_______ ,_______ ,                          _______,  _______, _______,  _______ , _______, _______ 
627+    ),
628+
629+   [5] = LAYOUT_all(
630+   
631+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,                  _______, _______,  _______ ,          _______, _______, _______, 
632+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,                  _______, _______,  _______ ,          _______, _______, _______,
633+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,  _______, _______,        _______,           _______ , _______, _______, _______,
634+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,  _______,                 _______,           _______ , _______, _______, _______,
635+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,  _______,                 _______,           _______ , _______, _______, _______,
636+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,                           _______,           _______ , _______, _______, _______,
637+    _______,_______,_______ ,         _______ ,_______ ,_______ ,                  _______ ,_______ ,_______ ,                          _______,  _______, _______,  _______ , _______, _______ 
638+    ),
639+    
640+   [6] = LAYOUT_all(
641+   
642+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,                  _______, _______,  _______ ,          _______, _______, _______, 
643+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,                  _______, _______,  _______ ,          _______, _______, _______,
644+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,  _______, _______,        _______,           _______ , _______, _______, _______,
645+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,  _______,                 _______,           _______ , _______, _______, _______,
646+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,  _______,                 _______,           _______ , _______, _______, _______,
647+    _______,_______,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,_______ ,                           _______,           _______ , _______, _______, _______,
648+    _______,_______,_______ ,         _______ ,_______ ,_______ ,                  _______ ,_______ ,_______ ,                          _______,  _______, _______,  _______ , _______, _______ 
649+    ),
650+    
651+   [7] = LAYOUT_all(
652+   
653diff --git a/keyboards/boston/mcuconf.h b/keyboards/boston/mcuconf.h
654new file mode 100644
655index 0000000000000000000000000000000000000000..d578d47ed1f0601f5d01207b077f7038790cbbb6
656--- /dev/null
657+++ b/keyboards/boston/mcuconf.h
658@@ -0,0 +1,176 @@
659+/*
660+    ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio
661+
662+    Licensed under the Apache License, Version 2.0 (the "License");
663+    you may not use this file except in compliance with the License.
664+    You may obtain a copy of the License at
665+
666+        http://www.apache.org/licenses/LICENSE-2.0
667+
668+    Unless required by applicable law or agreed to in writing, software
669+    distributed under the License is distributed on an "AS IS" BASIS,
670+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
671+    See the License for the specific language governing permissions and
672+    limitations under the License.
673+*/
674+
675+#ifndef _MCUCONF_H_
676+#define _MCUCONF_H_
677+
678+/*
679+ * STM32F0xx drivers configuration.
680+ * The following settings override the default settings present in
681+ * the various device driver implementation headers.
682+ * Note that the settings for each driver only have effect if the whole
683+ * driver is enabled in halconf.h.
684+ *
685+ * IRQ priorities:
686+ * 3...0       Lowest...Highest.
687+ *
688+ * DMA priorities:
689+ * 0...3        Lowest...Highest.
690+ */
691+
692+#define STM32F0xx_MCUCONF
693+// #define STM32F070xB
694+
695+/*
696+ * HAL driver system settings.
697+ */
698+#define STM32_NO_INIT FALSE
699+#define STM32_PVD_ENABLE FALSE
700+#define STM32_PLS STM32_PLS_LEV0
701+#define STM32_HSI_ENABLED TRUE
702+#define STM32_HSI14_ENABLED TRUE
703+#define STM32_HSI48_ENABLED FALSE
704+#define STM32_LSI_ENABLED TRUE
705+#define STM32_HSE_ENABLED FALSE
706+#define STM32_LSE_ENABLED FALSE
707+#define STM32_SW STM32_SW_PLL
708+#define STM32_PLLSRC STM32_PLLSRC_HSI_DIV2
709+#define STM32_PREDIV_VALUE 1
710+#define STM32_PLLMUL_VALUE 12
711+#define STM32_HPRE STM32_HPRE_DIV1
712+#define STM32_PPRE STM32_PPRE_DIV1
713+#define STM32_ADCSW STM32_ADCSW_HSI14
714+#define STM32_ADCPRE STM32_ADCPRE_DIV4
715+#define STM32_MCOSEL STM32_MCOSEL_NOCLOCK
716+#define STM32_ADCPRE STM32_ADCPRE_DIV4
717+#define STM32_ADCSW STM32_ADCSW_HSI14
718+#define STM32_USBSW STM32_USBSW_HSI48
719+#define STM32_CECSW STM32_CECSW_HSI
720+#define STM32_I2C1SW STM32_I2C1SW_HSI
721+#define STM32_USART1SW STM32_USART1SW_PCLK
722+#define STM32_RTCSEL STM32_RTCSEL_LSI
723+
724+/*
725+ * ADC driver system settings.
726+ */
727+#define STM32_ADC_USE_ADC1 FALSE
728+#define STM32_ADC_ADC1_DMA_PRIORITY 2
729+#define STM32_ADC_IRQ_PRIORITY 2
730+#define STM32_ADC_ADC1_DMA_IRQ_PRIORITY 2
731+
732+/*
733+ * EXT driver system settings.
734+ */
735+#define STM32_EXT_EXTI0_1_IRQ_PRIORITY 3
736+#define STM32_EXT_EXTI2_3_IRQ_PRIORITY 3
737+#define STM32_EXT_EXTI4_15_IRQ_PRIORITY 3
738+#define STM32_EXT_EXTI16_IRQ_PRIORITY 3
739+#define STM32_EXT_EXTI17_IRQ_PRIORITY 3
740+
741+/*
742+ * GPT driver system settings.
743+ */
744+#define STM32_GPT_USE_TIM1 FALSE
745+#define STM32_GPT_USE_TIM2 FALSE
746+#define STM32_GPT_USE_TIM3 FALSE
747+#define STM32_GPT_USE_TIM14 FALSE
748+#define STM32_GPT_TIM1_IRQ_PRIORITY 2
749+#define STM32_GPT_TIM2_IRQ_PRIORITY 2
750+#define STM32_GPT_TIM3_IRQ_PRIORITY 2
751+#define STM32_GPT_TIM14_IRQ_PRIORITY 2
752+
753+/*
754+ * I2C driver system settings.
755+ */
756+#define STM32_I2C_USE_I2C1 TRUE
757+#define STM32_I2C_USE_I2C2 FALSE
758diff --git a/keyboards/boston/readme.md b/keyboards/boston/readme.md
759new file mode 100644
760index 0000000000000000000000000000000000000000..41c6253fdb3b3c862ddf33642b3a178b17f19fde
761--- /dev/null
762+++ b/keyboards/boston/readme.md
763@@ -0,0 +1,23 @@
764+# Boston
765+
766+![3D-printed/FR4 version](https://github.com/bluepylons/Boston/raw/master/graphics/3D-printed-prototype.JPG)
767+
768+A compact 120% keyboard. 
769+
770+This keyboard is currently in IC - [Geekhack IC thread is here](https://geekhack.org/index.php?topic=106501.0). Group buy details will be posted once it is ready.
771+
772+* Keyboard Maintainer: [Bluepylons](https://github.com/bluepylons)
773+* Hardware Supported: Boston PCB (STM32F072)
774+* Hardware Availability: PCB and 3D-printing files are available on [Github](https://github.com/bluepylons/Boston).
775+
776+Make example for this keyboard (after setting up your build environment):
777+
778+    make boston:default
779+	
780+Flashing example for this keyboard:
781+
782+    make boston:default:flash
783+	
784+To reset the board, use a pin to press the reset button on the underside of the keyboard, above the numlock key. 
785+
786diff --git a/keyboards/boston/rules.mk b/keyboards/boston/rules.mk
787new file mode 100644
788index 0000000000000000000000000000000000000000..47dc20576753d9520fe2f07f5e08f64bbc574c27
789--- /dev/null
790+++ b/keyboards/boston/rules.mk
791@@ -0,0 +1,26 @@
792+# MCU name
793+MCU = STM32F072
794+
795+# Build Options
796+#   change yes to no to disable
797+#
798+BOOTMAGIC_ENABLE = yes     # Virtual DIP switch configuration
799+MOUSEKEY_ENABLE = no       # Mouse keys
800+EXTRAKEY_ENABLE = yes      # Audio control and System control
801+CONSOLE_ENABLE = no        # Console for debug
802+COMMAND_ENABLE = no        # Commands for debug and configuration
803+# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
804+SLEEP_LED_ENABLE = no      # Breathing sleep LED during USB suspend
805+# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
806+NKRO_ENABLE = yes          # USB Nkey Rollover
807+BACKLIGHT_ENABLE = yes     # Enable keyboard backlight functionality
808+RGBLIGHT_ENABLE = yes      # Enable keyboard RGB underglow
809+BLUETOOTH_ENABLE = no      # Enable Bluetooth
810+AUDIO_ENABLE = no          # Audio output
811+ENCODER_ENABLE = yes
812+
813+# Enter lower-power sleep mode when on the ChibiOS idle thread
814+OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
815+
816+# RGB setting
817+WS2812_DRIVER = bitbang