aboutsummaryrefslogtreecommitdiff
path: root/keyboards/rocketboard_16/config.h
diff options
context:
space:
mode:
authorSeth <fl3tching101@gmail.com>2020-11-01 12:46:00 -0600
committerGitHub <noreply@github.com>2020-11-01 10:46:00 -0800
commit9f0dbc21a3bcb815877e321c974c55c5320605c6 (patch)
tree5ec4ec1df71d2912600ee6e81eb2aea78b0210cc /keyboards/rocketboard_16/config.h
parentc731432765c17a159fd83f859a148c861769fd35 (diff)
downloadqmk_firmware-9f0dbc21a3bcb815877e321c974c55c5320605c6.tar.gz
qmk_firmware-9f0dbc21a3bcb815877e321c974c55c5320605c6.zip
[Keyboard] beta support for the Rocketboard-16 macro/num pad (#10688)
* Firmware initial commit, still has a few bugs - mainly rotary encoders do not work and needs cleaning up * Fixed the volume control issue and limited the RGB brightness (can be really bright), added the ability to switch LED mode with left encoder click, and added via support (untested) * Remove define that should go in config.h * Removed define that should be in config.h * Removed LTO_ENABLE as suggested - has issues on ARM Co-authored-by: Drashna Jaelre <drashna@live.com> * Added the correct define for OLED screen size * Applied suggested change to remove description Co-authored-by: Ryan <fauxpark@gmail.com> * Made suggested change to remove backslashes Co-authored-by: Ryan <fauxpark@gmail.com> * Suggested change made to rgblight Co-authored-by: Ryan <fauxpark@gmail.com> * Suggested change made to rgblight Co-authored-by: Ryan <fauxpark@gmail.com> * Suggested change made to remove backslashes Co-authored-by: Ryan <fauxpark@gmail.com> * Suggested change made to rgblight Co-authored-by: Ryan <fauxpark@gmail.com> * Update keyboards/rocketboard_16/rocketboard_16.c Co-authored-by: Ryan <fauxpark@gmail.com> * Added suggested comments Co-authored-by: Ryan <fauxpark@gmail.com> * Made suggested changes to rules file Co-authored-by: Ryan <fauxpark@gmail.com> * Added suggested change to rgblight Co-authored-by: Ryan <fauxpark@gmail.com> * Added info.json for QMK configurator * Update readme.md * This change makes the firmware work... through magic... seriously, no idea - but it works! * Updated dimming step, OLED functionality, and rules for formatting - Changed the dimming step size for smoother dimming with the reduced range - Added lots of OLED functionality - QMK logo and title at top, num/caps/scroll lock status, and backlight brightness level - Updated the rules.mk file to comply more closely with the formatting guidelines * Fixed tab issues Co-authored-by: Ryan <fauxpark@gmail.com> * Updated to use bootmagic lite with the key that usually turns rgb on/off Co-authored-by: Drashna Jaelre <drashna@live.com> Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/rocketboard_16/config.h')
-rw-r--r--keyboards/rocketboard_16/config.h83
1 files changed, 83 insertions, 0 deletions
diff --git a/keyboards/rocketboard_16/config.h b/keyboards/rocketboard_16/config.h
new file mode 100644
index 000000000..a82514e0b
--- /dev/null
+++ b/keyboards/rocketboard_16/config.h
@@ -0,0 +1,83 @@
1/*
2Copyright 2020 Seth Bonner <fl3tching101@gmail.com>
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#pragma once
19
20/* USB Device descriptor parameter */
21#define VENDOR_ID 0xB034
22#define PRODUCT_ID 0xFF16
23#define DEVICE_VER 0x0001
24#define MANUFACTURER Rocketboard
25#define PRODUCT Rocketboard-16
26
27/* key matrix size */
28#define MATRIX_ROWS 5
29#define MATRIX_COLS 4
30
31#define MATRIX_ROW_PINS { A9, B13, B14, B15, B3 }
32#define MATRIX_COL_PINS { B8, B9, B10, B11 }
33#define DIODE_DIRECTION COL2ROW
34
35/* Bootmagic key - row 4, col 1 */
36#define BOOTMAGIC_LITE_ROW 4
37#define BOOTMAGIC_LITE_COLUMN 1
38
39/* define if matrix has ghost */
40//#define MATRIX_HAS_GHOST
41
42/* Set 0 if debouncing isn't needed */
43#define DEBOUNCE 5
44
45#define RGBLIGHT_ANIMATIONS
46#define RGB_DI_PIN A4
47#define RGBLED_NUM 16
48#define RGBLIGHT_LIMIT_VAL 128
49#define RGBLIGHT_VAL_STEP 8
50#define RGBLIGHT_SLEEP
51
52// OLED stuff
53#define OLED_DISPLAY_128X64
54
55// Allows for rotary encoder volume control
56#define TAP_CODE_DELAY 20
57
58/* Encoder stuff */
59#define ENCODERS_PAD_A \
60 { A0, A2 }
61#define ENCODERS_PAD_B \
62 { A1, A3 }
63
64#define LOCKING_SUPPORT_ENABLE
65#define LOCKING_RESYNC_ENABLE
66
67/*
68 * Feature disable options
69 * These options are also useful to firmware size reduction.
70 */
71
72/* disable debug print */
73//#define NO_DEBUG
74
75/* disable print */
76//#define NO_PRINT
77
78/* disable action features */
79//#define NO_ACTION_LAYER
80//#define NO_ACTION_TAPPING
81//#define NO_ACTION_ONESHOT
82//#define NO_ACTION_MACRO
83//#define NO_ACTION_FUNCTION