aboutsummaryrefslogtreecommitdiffstats
path: root/keyboard/preonic/config.h
diff options
context:
space:
mode:
authorGravatar Stephan Bösebeck <stephan.boesebeck@holidayinsider.com>2016-04-02 15:15:21 +0200
committerGravatar Stephan Bösebeck <stephan.boesebeck@holidayinsider.com>2016-04-02 15:15:21 +0200
commitf0424a0c0fa4153234ad6979929e5a2426c86f21 (patch)
tree53deb01f09e9feb9a2fa11259c75411adceb2f3c /keyboard/preonic/config.h
parent71cdfe11682cf63c262380747d8a1b3d48a6bad0 (diff)
parentaee8715815544b076c123d4ed55c76e23a7e54d0 (diff)
downloadqmk_firmware-f0424a0c0fa4153234ad6979929e5a2426c86f21.tar.gz
Merge branch 'master' of https://github.com/sboesebeck/qmk_firmware
Diffstat (limited to 'keyboard/preonic/config.h')
-rw-r--r--keyboard/preonic/config.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/keyboard/preonic/config.h b/keyboard/preonic/config.h
index cad269c9d..5528667fa 100644
--- a/keyboard/preonic/config.h
+++ b/keyboard/preonic/config.h
@@ -18,11 +18,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#ifndef CONFIG_H
#define CONFIG_H
-#include "config_definitions.h"
+#include "config_common.h"
/* USB Device descriptor parameter */
#define VENDOR_ID 0xFEED
-#define PRODUCT_ID 0x6062
+#define PRODUCT_ID 0x6061
#define DEVICE_VER 0x0001
#define MANUFACTURER Ortholinear Keyboards
#define PRODUCT The Preonic Keyboard
@@ -34,7 +34,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* Planck PCB default pin-out */
#define COLS (int []){ F1, F0, B0, C7, F4, F5, F6, F7, D4, D6, B4, D7 }
-#define ROWS (int []){ D1, D0, D5, B5, B6 }
+#define ROWS (int []){ D2, D5, B5, B6, D3 }
+
+/* COL2ROW or ROW2COL */
+#define DIODE_DIRECTION COL2ROW
/* define if matrix has ghost */
//#define MATRIX_HAS_GHOST
@@ -55,6 +58,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
)
+/* ws2812 RGB LED */
+#define ws2812_PORTREG PORTD
+#define ws2812_DDRREG DDRD
+#define ws2812_pin PD1
+#define RGBLED_NUM 28 // Number of LEDs
+#define RGBLIGHT_HUE_STEP 10
+#define RGBLIGHT_SAT_STEP 17
+#define RGBLIGHT_VAL_STEP 17
+
/*
* Feature disable options
* These options are also useful to firmware size reduction.