aboutsummaryrefslogtreecommitdiff
path: root/keyboards/nullbitsco/snap
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/nullbitsco/snap')
-rw-r--r--keyboards/nullbitsco/snap/keyboard.json (renamed from keyboards/nullbitsco/snap/info.json)13
-rw-r--r--keyboards/nullbitsco/snap/matrix.c7
-rw-r--r--keyboards/nullbitsco/snap/rules.mk21
3 files changed, 18 insertions, 23 deletions
diff --git a/keyboards/nullbitsco/snap/info.json b/keyboards/nullbitsco/snap/keyboard.json
index 65cd463708..139bbf5b45 100644
--- a/keyboards/nullbitsco/snap/info.json
+++ b/keyboards/nullbitsco/snap/keyboard.json
@@ -7,6 +7,18 @@
"pid": "0x6063",
"device_version": "0.0.1"
},
+ "build": {
+ "lto": true
+ },
+ "features": {
+ "bootmagic": false,
+ "encoder": true,
+ "extrakey": true,
+ "mousekey": false,
+ "nkro": false,
+ "rgblight": true,
+ "space_cadet": false
+ },
"encoder": {
"rotary": [
{"pin_a": "B3", "pin_b": "B1"}
@@ -31,6 +43,7 @@
}
},
"split": {
+ "enabled": true,
"encoder": {
"right": {
"rotary": [
diff --git a/keyboards/nullbitsco/snap/matrix.c b/keyboards/nullbitsco/snap/matrix.c
index ceb9cd8984..3cd3f5c37e 100644
--- a/keyboards/nullbitsco/snap/matrix.c
+++ b/keyboards/nullbitsco/snap/matrix.c
@@ -13,13 +13,10 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <stdint.h>
-#include <stdbool.h>
-#include <string.h>
-#include "util.h"
#include "matrix.h"
+#include <string.h>
#include "split_util.h"
-#include "quantum.h"
+#include "wait.h"
#define VIRT_COLS_PER_HAND 1
#define PHYS_COLS_PER_HAND (MATRIX_COLS - VIRT_COLS_PER_HAND)
diff --git a/keyboards/nullbitsco/snap/rules.mk b/keyboards/nullbitsco/snap/rules.mk
index 2ad88b97c0..1603cb408c 100644
--- a/keyboards/nullbitsco/snap/rules.mk
+++ b/keyboards/nullbitsco/snap/rules.mk
@@ -1,23 +1,8 @@
-# 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 = no # Console for debug
-COMMAND_ENABLE = no # Commands for debug and configuration
-NKRO_ENABLE = no # Enable N-Key Rollover
-BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
-AUDIO_ENABLE = no # Audio output
-SPLIT_KEYBOARD = yes # Split common
-LTO_ENABLE = yes # Use Link Time Optimization
-ENCODER_ENABLE = yes # Enables the use of one or more encoders
-SPACE_CADET_ENABLE = no # Enables the use of Space Cadet
-RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
-CUSTOM_MATRIX = lite # Split custom matrix
+CUSTOM_MATRIX = lite
+
+UART_DRIVER_REQUIRED = yes
# Project specific files
SRC += common/bitc_led.c \
common/remote_kb.c \
matrix.c
-UART_DRIVER_REQUIRED = yes