summaryrefslogtreecommitdiff
path: root/keyboards/a_dux
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/a_dux')
-rw-r--r--keyboards/a_dux/config.h37
-rw-r--r--keyboards/a_dux/info.json23
-rw-r--r--keyboards/a_dux/keymaps/daliusd/keymap.c2
-rw-r--r--keyboards/a_dux/rules.mk7
4 files changed, 24 insertions, 45 deletions
diff --git a/keyboards/a_dux/config.h b/keyboards/a_dux/config.h
index c7e3775028..d636139928 100644
--- a/keyboards/a_dux/config.h
+++ b/keyboards/a_dux/config.h
@@ -16,43 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-#include "config_common.h"
-
-/* key matrix size */
-#define MATRIX_ROWS 8
-#define MATRIX_COLS 5
-
-/*
- * Keyboard Matrix Assignments
- *
- * Change this to how you wired your keyboard
- * COLS: AVR pins used for columns, left to right
- * ROWS: AVR pins used for rows, top to bottom
- * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
- * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
- * NO_DIODE = switches are directly connected to AVR pins
- *
-*/
-#define DIRECT_PINS { \
- { C6, D2, F7, B2, F4 }, \
- { D7, D0, F6, B3, F5 }, \
- { E6, D4, D3, B1, B6 }, \
- { B4, B5, NO_PIN, NO_PIN, NO_PIN } \
-}
-
-#define DIRECT_PINS_RIGHT { \
- { F4, B2, F7, D2, C6 }, \
- { F5, B3, F6, D0, D7 }, \
- { B6, B1, D3, D4, E6 }, \
- { B5, B4, NO_PIN, NO_PIN, NO_PIN } \
-}
-
-
-
-
-/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
-#define DEBOUNCE 5
-
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
diff --git a/keyboards/a_dux/info.json b/keyboards/a_dux/info.json
index 7b9a43822a..6292d5e707 100644
--- a/keyboards/a_dux/info.json
+++ b/keyboards/a_dux/info.json
@@ -8,6 +8,29 @@
"pid": "0x3939",
"device_version": "0.0.1"
},
+ "processor": "atmega32u4",
+ "bootloader": "atmel-dfu",
+ "matrix_pins": {
+ "direct": [
+ ["C6", "D2", "F7", "B2", "F4"],
+ ["D7", "D0", "F6", "B3", "F5"],
+ ["E6", "D4", "D3", "B1", "B6"],
+ ["B4", "B5", null, null, null]
+ ]
+ },
+ "split": {
+ "matrix_pins": {
+ "right": {
+ "direct": [
+ ["F4", "B2", "F7", "D2", "C6"],
+ ["F5", "B3", "F6", "D0", "D7"],
+ ["B6", "B1", "D3", "D4", "E6"],
+ ["B5", "B4", null, null, null]
+ ]
+ }
+ }
+ },
+ "community_layouts": ["split_3x5_2"],
"layouts": {
"LAYOUT_split_3x5_2": {
"layout": [
diff --git a/keyboards/a_dux/keymaps/daliusd/keymap.c b/keyboards/a_dux/keymaps/daliusd/keymap.c
index 72f2417278..7dec77b01e 100644
--- a/keyboards/a_dux/keymaps/daliusd/keymap.c
+++ b/keyboards/a_dux/keymaps/daliusd/keymap.c
@@ -101,7 +101,7 @@ enum unicode_names {
LT_CB,
};
-const uint32_t PROGMEM unicode_map[] = {
+const uint32_t unicode_map[] PROGMEM = {
[SNEK] = 0x1F40D, // 🐍
[EURO] = 0x20ac, // €
[LT_S_A] = 0x105, // ą
diff --git a/keyboards/a_dux/rules.mk b/keyboards/a_dux/rules.mk
index f4f3aaf382..935483d839 100644
--- a/keyboards/a_dux/rules.mk
+++ b/keyboards/a_dux/rules.mk
@@ -1,9 +1,3 @@
-# MCU name
-MCU = atmega32u4
-
-# Bootloader selection
-BOOTLOADER = atmel-dfu
-
# Build Options
# change yes to no to disable
#
@@ -18,4 +12,3 @@ RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
UNICODE_ENABLE = yes # Unicode
AUDIO_ENABLE = no # Audio output
SPLIT_KEYBOARD = yes # Use shared split_common code
-LAYOUTS = split_3x5_2