summaryrefslogtreecommitdiff
path: root/keyboards/flx/lodestone/config.h
diff options
context:
space:
mode:
authorFlexerm <51996324+Flexerm@users.noreply.github.com>2020-03-18 19:56:22 +0000
committerGitHub <noreply@github.com>2020-03-18 12:56:22 -0700
commit13d736d6ab6180072dabce17491f081fba2a2f38 (patch)
tree44efa17c40e5fd011cc55750e5b5c85da2b75126 /keyboards/flx/lodestone/config.h
parent0b810bdff385d78e2b5568d270438b15d678948f (diff)
[Keyboard] FLX Lodestone (#8451)
* Add Lodestone PCB Working Firmware for Lodestone PCB tested on physical PCB prototypes. * Update keyboards/flx/lodestone/lodestone.c * Update keyboards/flx/lodestone/keymaps/default/config.h * Update keyboards/flx/lodestone/rules.mk * Update keyboards/flx/lodestone/readme.md * Delete config.h * Update keyboards/flx/lodestone/info.json Suggested by noroadsleft * Update keyboards/flx/lodestone/info.json * Update keyboards/flx/lodestone/info.json Changed maintainer name as suggested. * Update keyboards/flx/lodestone/keymaps/default/readme.md * Update keyboards/flx/lodestone/info.json * Update keyboards/flx/lodestone/rules.mk Changed Link_Time_Optimization to LTO didn't know this was a thing :) * Update keyboards/flx/lodestone/keymaps/default/keymap.c Removed 2 unessisary layers from the default map. * Update keyboards/flx/lodestone/readme.md * Update keyboards/flx/lodestone/info.json * Changed from LAYOUT to LAYOUT_all AS suggested by noroadsleft, changed 4 files to match, and re-testeed on my hardware to confirm working. * Update keyboards/flx/lodestone/config.h Cleaned up Manu, Product and Descriptor as suggested. * Update keyboards/flx/lodestone/readme.md
Diffstat (limited to 'keyboards/flx/lodestone/config.h')
-rw-r--r--keyboards/flx/lodestone/config.h70
1 files changed, 70 insertions, 0 deletions
diff --git a/keyboards/flx/lodestone/config.h b/keyboards/flx/lodestone/config.h
new file mode 100644
index 0000000000..b2a1022a45
--- /dev/null
+++ b/keyboards/flx/lodestone/config.h
@@ -0,0 +1,70 @@
+/* Copyright 2020 Shaun Mitchell (Flex)
+ *
+ * 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
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#pragma once
+
+#include "config_common.h"
+
+/* USB Device descriptor parameter */
+#define VENDOR_ID 0x4658 //FX
+#define PRODUCT_ID 0x4C53 //LS
+#define DEVICE_VER 0x0001
+#define MANUFACTURER FLX
+#define PRODUCT Lodestone
+#define DESCRIPTION FLX Lodestone
+
+/* key matrix size */
+#define MATRIX_ROWS 5
+#define MATRIX_COLS 16
+
+/*
+ * Keyboard Matrix Assignments
+ *
+ * Change this to how you wired your keyboard
+ * COLS: AVR pins used for columns, left to right
+ * ROWS: AVR pins used for rows, top to bottom
+ * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
+ * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
+ *
+*/
+#define MATRIX_ROW_PINS { B3, B7, F0, F1, F4 }
+#define MATRIX_COL_PINS { B2, F5, F6, D0, D1, D2, D3, D5, D4, D6, D7, B4, B5, B6, C6, C7 }
+#define UNUSED_PINS
+
+/* COL2ROW, ROW2COL*/
+#define DIODE_DIRECTION COL2ROW
+
+// #define BACKLIGHT_PIN B7
+// #define BACKLIGHT_BREATHING
+// #define BACKLIGHT_LEVELS 3
+
+/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
+#define DEBOUNCE 5
+
+/* define if matrix has ghost (lacks anti-ghosting diodes) */
+//#define MATRIX_HAS_GHOST
+
+/* number of backlight levels */
+
+/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
+#define LOCKING_SUPPORT_ENABLE
+/* Locking resynchronize hack */
+#define LOCKING_RESYNC_ENABLE
+
+/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
+ * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
+ */
+// #define GRAVE_ESC_CTRL_OVERRIDE