summaryrefslogtreecommitdiffstats
path: root/keyboards/clueboard/2x1800
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/clueboard/2x1800')
-rw-r--r--keyboards/clueboard/2x1800/2018/config.h1
-rw-r--r--keyboards/clueboard/2x1800/2018/info.json1
-rw-r--r--keyboards/clueboard/2x1800/2019/2019.h6
-rw-r--r--keyboards/clueboard/2x1800/2019/config.h9
-rw-r--r--keyboards/clueboard/2x1800/2019/info.json9
-rw-r--r--keyboards/clueboard/2x1800/2021/config.h8
-rw-r--r--keyboards/clueboard/2x1800/2021/font.h2
-rw-r--r--keyboards/clueboard/2x1800/2021/info.json7
8 files changed, 17 insertions, 26 deletions
diff --git a/keyboards/clueboard/2x1800/2018/config.h b/keyboards/clueboard/2x1800/2018/config.h
index 9d5b9b5144..95cde57668 100644
--- a/keyboards/clueboard/2x1800/2018/config.h
+++ b/keyboards/clueboard/2x1800/2018/config.h
@@ -17,7 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-#include "config_common.h"
/* audio support */
#define AUDIO_PIN_ALT B7
diff --git a/keyboards/clueboard/2x1800/2018/info.json b/keyboards/clueboard/2x1800/2018/info.json
index e732f28855..03162625c6 100644
--- a/keyboards/clueboard/2x1800/2018/info.json
+++ b/keyboards/clueboard/2x1800/2018/info.json
@@ -4,7 +4,6 @@
"maintainer": "skullydazed",
"processor": "at90usb1286",
"bootloader": "halfkay",
- "debounce": 5,
"diode_direction": "ROW2COL",
"features": {
"audio": true,
diff --git a/keyboards/clueboard/2x1800/2019/2019.h b/keyboards/clueboard/2x1800/2019/2019.h
index 5debfacc5d..c5869ff66f 100644
--- a/keyboards/clueboard/2x1800/2019/2019.h
+++ b/keyboards/clueboard/2x1800/2019/2019.h
@@ -18,16 +18,12 @@
#include "quantum.h"
enum TWOx1800_keycodes {
- ENC_BTN1 = SAFE_RANGE,
+ ENC_BTN1 = QK_KB_0,
ENC_BTN2,
ENC_BTN3,
ENC_BTN4,
- NEW_SAFE_RANGE
};
-#undef SAFE_RANGE
-#define SAFE_RANGE NEW_SAFE_RANGE
-
// Encoder update function that returns true/false
bool encoder_update_keymap(uint8_t index, bool clockwise);
diff --git a/keyboards/clueboard/2x1800/2019/config.h b/keyboards/clueboard/2x1800/2019/config.h
index 162d41a2e2..031952a0b3 100644
--- a/keyboards/clueboard/2x1800/2019/config.h
+++ b/keyboards/clueboard/2x1800/2019/config.h
@@ -17,15 +17,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-#include "config_common.h"
-
-/*
- * Encoder Assignments
- */
-#define ENCODERS_PAD_A { A5, A4, A2, A1 }
-#define ENCODERS_PAD_B { A6, A7, A3, A0 }
-#define ENCODER_RESOLUTION 4
-
/* audio support */
#define AUDIO_PIN_ALT B7
#define AUDIO_PIN C4
diff --git a/keyboards/clueboard/2x1800/2019/info.json b/keyboards/clueboard/2x1800/2019/info.json
index 886f3878bf..0eebbabb6d 100644
--- a/keyboards/clueboard/2x1800/2019/info.json
+++ b/keyboards/clueboard/2x1800/2019/info.json
@@ -2,7 +2,6 @@
"manufacturer": "Clueboard",
"keyboard_name": "Clueboard 2x1800 2019",
"maintainer": "skullydazed",
- "debounce": 5,
"processor": "at90usb1286",
"bootloader": "halfkay",
"diode_direction": "ROW2COL",
@@ -28,6 +27,14 @@
"pid": "0x23A0",
"vid": "0xC1ED"
},
+ "encoder": {
+ "rotary": [
+ {"pin_a": "A5", "pin_b": "A6"},
+ {"pin_a": "A4", "pin_b": "A7"},
+ {"pin_a": "A2", "pin_b": "A3"},
+ {"pin_a": "A1", "pin_b": "A0"}
+ ]
+ },
"layout_aliases": {
"LAYOUT": "LAYOUT_all"
},
diff --git a/keyboards/clueboard/2x1800/2021/config.h b/keyboards/clueboard/2x1800/2021/config.h
index eccede6a41..eb4fd4bbf6 100644
--- a/keyboards/clueboard/2x1800/2021/config.h
+++ b/keyboards/clueboard/2x1800/2021/config.h
@@ -17,20 +17,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-#include "config_common.h"
/* audio support */
#define AUDIO_PIN_ALT B7
#define AUDIO_PIN C4
#define AUDIO_CLICKY
-/*
- * Encoder Assignments
- */
-#define ENCODERS_PAD_A { D0, C5 }
-#define ENCODERS_PAD_B { D1, C6 }
-#define ENCODER_RESOLUTION 4
-
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
diff --git a/keyboards/clueboard/2x1800/2021/font.h b/keyboards/clueboard/2x1800/2021/font.h
index 5ddcbfba56..191d11dcee 100644
--- a/keyboards/clueboard/2x1800/2021/font.h
+++ b/keyboards/clueboard/2x1800/2021/font.h
@@ -24,6 +24,8 @@
* OTHER DEALINGS IN THE SOFTWARE.
*/
+#pragma once
+
// Top row of keyboard, when shift held
#define CHR_TILDE {0b00110000, 0b01000000, 0b00110000, 0b00001000, 0b00110000, 0b00000000}
#define CHR_BANG {0b00000000, 0b00000000, 0b11111010, 0b10000000, 0b00000000, 0b00000000}
diff --git a/keyboards/clueboard/2x1800/2021/info.json b/keyboards/clueboard/2x1800/2021/info.json
index 088ce343db..44842c0e16 100644
--- a/keyboards/clueboard/2x1800/2021/info.json
+++ b/keyboards/clueboard/2x1800/2021/info.json
@@ -3,7 +3,6 @@
"keyboard_name": "Clueboard 2x1800 2021",
"maintainer": "skullydazed",
"bootloader": "halfkay",
- "debounce": 5,
"diode_direction": "ROW2COL",
"features": {
"audio": true,
@@ -27,6 +26,12 @@
"usb": {
"pid": "0x23A0"
},
+ "encoder": {
+ "rotary": [
+ {"pin_a": "D0", "pin_b": "D1"},
+ {"pin_a": "C5", "pin_b": "C6"}
+ ]
+ },
"layout_aliases": {
"LAYOUT": "LAYOUT_all"
},