aboutsummaryrefslogtreecommitdiff
path: root/keyboards/handwired/d48
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/handwired/d48')
-rw-r--r--keyboards/handwired/d48/keyboard.json (renamed from keyboards/handwired/d48/info.json)16
-rw-r--r--keyboards/handwired/d48/rules.mk17
-rw-r--r--keyboards/handwired/d48/taphold.c3
-rw-r--r--keyboards/handwired/d48/taphold.h4
4 files changed, 19 insertions, 21 deletions
diff --git a/keyboards/handwired/d48/info.json b/keyboards/handwired/d48/keyboard.json
index 295fead587..99c8a67326 100644
--- a/keyboards/handwired/d48/info.json
+++ b/keyboards/handwired/d48/keyboard.json
@@ -42,9 +42,19 @@
"qmk": {
"tap_keycode_delay": 10
},
- "processor": "STM32F303",
- "bootloader": "stm32-dfu",
- "board": "QMK_PROTON_C",
+ "development_board": "proton_c",
+ "features": {
+ "bootmagic": false,
+ "mousekey": false,
+ "extrakey": true,
+ "console": true,
+ "nkro": true,
+ "audio": true,
+ "rgblight": true,
+ "encoder": true,
+ "oled": true,
+ "unicode": true
+ },
"layouts": {
"LAYOUT": {
"layout": [
diff --git a/keyboards/handwired/d48/rules.mk b/keyboards/handwired/d48/rules.mk
index 7fa8dfdd34..62866f887a 100644
--- a/keyboards/handwired/d48/rules.mk
+++ b/keyboards/handwired/d48/rules.mk
@@ -1,18 +1 @@
-# Build Options
-# change yes to no to disable
-#
-BOOTMAGIC_ENABLE = no # Enable Bootmagic Lite
-MOUSEKEY_ENABLE = no # Mouse keys
-EXTRAKEY_ENABLE = yes # Audio control and System control
-CONSOLE_ENABLE = yes # Console for debug
-COMMAND_ENABLE = no # Commands for debug and configuration
-NKRO_ENABLE = yes # Enable N-Key Rollover
-BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
-AUDIO_ENABLE = yes
-USE_I2C = no
-RGBLIGHT_ENABLE = yes
-ENCODER_ENABLE = yes
-OLED_ENABLE = yes
-UNICODE_ENABLE = yes
-
SRC += ds1307.c taphold.c
diff --git a/keyboards/handwired/d48/taphold.c b/keyboards/handwired/d48/taphold.c
index 0b56a5a6a1..5360391b97 100644
--- a/keyboards/handwired/d48/taphold.c
+++ b/keyboards/handwired/d48/taphold.c
@@ -1,4 +1,7 @@
#include "taphold.h"
+#include "action_layer.h"
+#include "keyboard.h"
+#include "timer.h"
bool taphold_process(uint16_t keycode, keyrecord_t *record) {
for (int i = 0; i < taphold_config_size; i++) {
diff --git a/keyboards/handwired/d48/taphold.h b/keyboards/handwired/d48/taphold.h
index 2a691aa63f..8788c58f3d 100644
--- a/keyboards/handwired/d48/taphold.h
+++ b/keyboards/handwired/d48/taphold.h
@@ -1,6 +1,8 @@
#pragma once
-#include "quantum.h"
+#include <stdint.h>
+#include <stdbool.h>
+#include "action.h"
typedef enum taphold_mode_t {
TAPHOLD_LAYER,