summaryrefslogtreecommitdiff
path: root/keyboards/smallkeyboard
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-03-11 05:41:58 +1100
committerGitHub <noreply@github.com>2023-03-11 05:41:58 +1100
commite933e0411f442fa411d3d5ec488180fee241e2ef (patch)
treef091f00a1408d752389385ff793c2878ec99e368 /keyboards/smallkeyboard
parent1022afa6c24a64c78d1c9be99a695ff5335876f7 (diff)
Move matrix config to info.json, part 5 (#20003)
Co-authored-by: Nick Brassel <nick@tzarc.org>
Diffstat (limited to 'keyboards/smallkeyboard')
-rw-r--r--keyboards/smallkeyboard/config.h17
-rw-r--r--keyboards/smallkeyboard/info.json5
2 files changed, 5 insertions, 17 deletions
diff --git a/keyboards/smallkeyboard/config.h b/keyboards/smallkeyboard/config.h
index 570607c3ca..4bee1c3663 100644
--- a/keyboards/smallkeyboard/config.h
+++ b/keyboards/smallkeyboard/config.h
@@ -17,23 +17,6 @@
17 17
18#pragma once 18#pragma once
19 19
20
21/*
22 * Keyboard Matrix Assignments
23 *
24 * Change this to how you wired your keyboard
25 * COLS: AVR pins used for columns, left to right
26 * ROWS: AVR pins used for rows, top to bottom
27 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
28 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
29 *
30 */
31#define MATRIX_ROW_PINS {C7, C6 }
32#define MATRIX_COL_PINS {F7, F6, F5}
33
34/* COL2ROW, ROW2COL*/
35#define DIODE_DIRECTION ROW2COL
36
37#ifdef RGB_MATRIX_ENABLE 20#ifdef RGB_MATRIX_ENABLE
38# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended 21# define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
39# define RGB_MATRIX_KEYPRESSES 22# define RGB_MATRIX_KEYPRESSES
diff --git a/keyboards/smallkeyboard/info.json b/keyboards/smallkeyboard/info.json
index 11a96f5af6..16c79cf6ad 100644
--- a/keyboards/smallkeyboard/info.json
+++ b/keyboards/smallkeyboard/info.json
@@ -8,6 +8,11 @@
8 "pid": "0x736B", 8 "pid": "0x736B",
9 "device_version": "0.0.1" 9 "device_version": "0.0.1"
10 }, 10 },
11 "matrix_pins": {
12 "cols": ["F7", "F6", "F5"],
13 "rows": ["C7", "C6"]
14 },
15 "diode_direction": "ROW2COL",
11 "processor": "atmega32u4", 16 "processor": "atmega32u4",
12 "bootloader": "atmel-dfu", 17 "bootloader": "atmel-dfu",
13 "debounce": 3, 18 "debounce": 3,