summaryrefslogtreecommitdiffstats
path: root/keyboards/levinson/rev1
diff options
context:
space:
mode:
authorDanny <nooges@users.noreply.github.com>2018-08-13 21:05:58 +0200
committerDrashna Jaelre <drashna@live.com>2018-08-13 21:05:58 +0200
commit05b7383703d9e7bb68f29765adf865ba78facf2d (patch)
tree63420634e49af91a45a87119fba077ef76cd7f05 /keyboards/levinson/rev1
parent39256c2449c9c56562f3110f8655fdaf3e2cd5cc (diff)
downloadqmk_firmware-05b7383703d9e7bb68f29765adf865ba78facf2d.tar.gz
qmk_firmware-05b7383703d9e7bb68f29765adf865ba78facf2d.tar.xz
Keyboard: Refactor Levinson to use split common code (#3639)
* Migrate Levinson to use split_common code * Update keymap
Diffstat (limited to 'keyboards/levinson/rev1')
-rw-r--r--keyboards/levinson/rev1/config.h35
-rw-r--r--keyboards/levinson/rev1/rev1.c1
-rw-r--r--keyboards/levinson/rev1/rev1.h7
3 files changed, 5 insertions, 38 deletions
diff --git a/keyboards/levinson/rev1/config.h b/keyboards/levinson/rev1/config.h
index ddccbc47a..52a644e82 100644
--- a/keyboards/levinson/rev1/config.h
+++ b/keyboards/levinson/rev1/config.h
@@ -1,6 +1,7 @@
/*
Copyright 2012 Jun Wako <wakojun@gmail.com>
Copyright 2015 Jack Humbert
+Copyright 2018 Danny Nguyen <danny@keeb.io>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -16,10 +17,9 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef REV1_CONFIG_H
-#define REV1_CONFIG_H
+#pragma once
-#include "../config.h"
+#include QMK_KEYBOARD_CONFIG_H
/* USB Device descriptor parameter */
#define VENDOR_ID 0xCEEB
@@ -38,12 +38,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_ROW_PINS { D7, E6, B4, B5 }
#define MATRIX_COL_PINS { F6, F7, B1, B3, B2, F4 }
-/* define if matrix has ghost */
-//#define MATRIX_HAS_GHOST
-
-/* number of backlight levels */
-#define BACKLIGHT_LEVELS 7
-
/* Set 0 if debouncing isn't needed */
#define DEBOUNCING_DELAY 5
@@ -61,30 +55,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define RGB_DI_PIN D3
#define RGBLIGHT_TIMER
#define RGBLED_NUM 12 // Number of LEDs
-#define ws2812_PORTREG PORTD
-#define ws2812_DDRREG DDRD
/* Backlight LEDs */
#define BACKLIGHT_PIN B6
#define BACKLIGHT_LEVELS 7
-
-/*
- * Feature disable options
- * These options are also useful to firmware size reduction.
- */
-
-/* disable debug print */
-// #define NO_DEBUG
-
-/* disable print */
-// #define NO_PRINT
-
-/* disable action features */
-//#define NO_ACTION_LAYER
-//#define NO_ACTION_TAPPING
-//#define NO_ACTION_ONESHOT
-//#define NO_ACTION_MACRO
-//#define NO_ACTION_FUNCTION
-
-
-#endif
diff --git a/keyboards/levinson/rev1/rev1.c b/keyboards/levinson/rev1/rev1.c
index edcfd9357..573fa787b 100644
--- a/keyboards/levinson/rev1/rev1.c
+++ b/keyboards/levinson/rev1/rev1.c
@@ -1,6 +1,5 @@
#include "levinson.h"
-
#ifdef SSD1306OLED
void led_set_kb(uint8_t usb_led) {
// put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
diff --git a/keyboards/levinson/rev1/rev1.h b/keyboards/levinson/rev1/rev1.h
index d24d1d7ad..2120bb0fa 100644
--- a/keyboards/levinson/rev1/rev1.h
+++ b/keyboards/levinson/rev1/rev1.h
@@ -1,7 +1,6 @@
-#ifndef REV2_H
-#define REV2_H
+#pragma once
-#include "../levinson.h"
+#include "levinson.h"
//void promicro_bootloader_jmp(bool program);
#include "quantum.h"
@@ -58,5 +57,3 @@
#endif
#define LAYOUT_ortho_4x12 LAYOUT
-
-#endif