From e30c993d75b2edd78c185a5d5f33f2fe10635eb5 Mon Sep 17 00:00:00 2001
From: noroadsleft <18669334+noroadsleft@users.noreply.github.com>
Date: Sun, 17 Mar 2019 10:04:50 -0700
Subject: [Keyboard] XD75 refactor (#5420)
* Refactor layout macro names
Update the names of the layout macros to reflect QMK's desired usage.
- KEYMAP renamed to LAYOUT
- colinta keymap updated accordingly
- KC_KEYMAP renamed to LAYOUT_kc
- mtdjr keymap updated accordingly
* Update xd75.h to use #pragma once include guard
* Update keymaps to use QMK_KEYBOARD_H
* Refactor default keymap
- updated to use layout macro
- remove deprecated action_get_macro function
- add functions from QMK keymap.c template
- process_record_user
- matrix_init_user
- matrix_scan_user
- led_set_user
* Update supporting files
- updated config.h files to use #pragma once include guard
- remove errant QUANTUM_DIR code block
* Rename readme files to fully lowercase filenames
* Restructure keyboard readme
Updated the readme to better align with the current QMK template.
* Bugfixes to supporting files
---
keyboards/xd75/keymaps/adi/config.h | 7 +------
keyboards/xd75/keymaps/adi/keymap.c | 2 +-
keyboards/xd75/keymaps/adi/rules.mk | 1 +
3 files changed, 3 insertions(+), 7 deletions(-)
(limited to 'keyboards/xd75/keymaps/adi')
diff --git a/keyboards/xd75/keymaps/adi/config.h b/keyboards/xd75/keymaps/adi/config.h
index 244c75c77c..08bed9ccb9 100644
--- a/keyboards/xd75/keymaps/adi/config.h
+++ b/keyboards/xd75/keymaps/adi/config.h
@@ -14,12 +14,7 @@
* along with this program. If not, see .
*/
-#ifndef CONFIG_USER_H
-#define CONFIG_USER_H
-
-#include "../../config.h"
+#pragma once
// Disable backlight
#undef BACKLIGHT_ENABLE
-
-#endif
diff --git a/keyboards/xd75/keymaps/adi/keymap.c b/keyboards/xd75/keymaps/adi/keymap.c
index a91b7d35db..4f9e414c1c 100644
--- a/keyboards/xd75/keymaps/adi/keymap.c
+++ b/keyboards/xd75/keymaps/adi/keymap.c
@@ -13,7 +13,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
-#include "xd75.h"
+#include QMK_KEYBOARD_H
// Fillers to make layering more clear
#define ___T___ KC_TRNS
diff --git a/keyboards/xd75/keymaps/adi/rules.mk b/keyboards/xd75/keymaps/adi/rules.mk
index 52a8f38d45..a0c4fc9678 100644
--- a/keyboards/xd75/keymaps/adi/rules.mk
+++ b/keyboards/xd75/keymaps/adi/rules.mk
@@ -13,3 +13,4 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
+BACKLIGHT_ENABLE = no
--
cgit v1.2.1