aboutsummaryrefslogtreecommitdiff
path: root/keyboards/standaside
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/standaside')
-rw-r--r--keyboards/standaside/config.h204
-rw-r--r--keyboards/standaside/keymaps/default/config.h5
-rw-r--r--keyboards/standaside/keymaps/default/keymap.c77
-rw-r--r--keyboards/standaside/readme.md15
-rw-r--r--keyboards/standaside/rules.mk73
-rw-r--r--keyboards/standaside/standaside.c14
-rw-r--r--keyboards/standaside/standaside.h29
7 files changed, 417 insertions, 0 deletions
diff --git a/keyboards/standaside/config.h b/keyboards/standaside/config.h
new file mode 100644
index 000000000..fa3576ca5
--- /dev/null
+++ b/keyboards/standaside/config.h
@@ -0,0 +1,204 @@
1
2
3#pragma once
4
5#include "config_common.h"
6
7/* USB Device descriptor parameter */
8#define VENDOR_ID 0xF7E0
9#define PRODUCT_ID 0x0412
10#define DEVICE_VER 0x0003
11#define MANUFACTURER Fate Everywhere
12#define PRODUCT Stand Aside
13#define DESCRIPTION A compact 60% keyboard
14
15/* key matrix size */
16#define MATRIX_ROWS 8
17#define MATRIX_COLS 8
18
19/*
20 * Keyboard Matrix Assignments
21 *
22 * Change this to how you wired your keyboard
23 * COLS: AVR pins used for columns, left to right
24 * ROWS: AVR pins used for rows, top to bottom
25 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
26 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
27 *
28*/
29#define MATRIX_ROW_PINS { D1, F4, F6, F7, B1, B3, B2, B6 }
30#define MATRIX_COL_PINS { F5, D0, D4, C6, D7, E6, B4, B5 }
31#define UNUSED_PINS {}
32
33
34/* COL2ROW, ROW2COL, or CUSTOM_MATRIX */
35#define DIODE_DIRECTION COL2ROW
36
37// #define BACKLIGHT_PIN C7
38// #define BACKLIGHT_BREATHING
39// #define BACKLIGHT_LEVELS 3
40
41
42/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
43#define DEBOUNCING_DELAY 5
44
45/* define if matrix has ghost (lacks anti-ghosting diodes) */
46//#define MATRIX_HAS_GHOST
47
48/* number of backlight levels */
49
50/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
51#define LOCKING_SUPPORT_ENABLE
52/* Locking resynchronize hack */
53#define LOCKING_RESYNC_ENABLE
54
55/*
56 * Enable RGB Underlighting
57 */
58#define RGB_DI_PIN C7
59#define RGBLED_NUM 12
60#define RGBLIGHT_ANIMATIONS
61
62/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
63 * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
64 */
65// #define GRAVE_ESC_CTRL_OVERRIDE
66
67/*
68 * Force NKRO
69 *
70 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
71 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
72 * makefile for this to work.)
73 *
74 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
75 * until the next keyboard reset.
76 *
77 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
78 * fully operational during normal computer usage.
79 *
80 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
81 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
82 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
83 * power-up.
84 *
85 */
86//#define FORCE_NKRO
87
88/*
89 * Magic Key Options
90 *
91 * Magic keys are hotkey commands that allow control over firmware functions of
92 * the keyboard. They are best used in combination with the HID Listen program,
93 * found here: https://www.pjrc.com/teensy/hid_listen.html
94 *
95 * The options below allow the magic key functionality to be changed. This is
96 * useful if your keyboard/keypad is missing keys and you want magic key support.
97 *
98 */
99
100/* control how magic key switches layers */
101//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true
102//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true
103//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false
104
105/* override magic key keymap */
106//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS
107//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS
108//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM
109//#define MAGIC_KEY_HELP1 H
110//#define MAGIC_KEY_HELP2 SLASH
111//#define MAGIC_KEY_DEBUG D
112//#define MAGIC_KEY_DEBUG_MATRIX X
113//#define MAGIC_KEY_DEBUG_KBD K
114//#define MAGIC_KEY_DEBUG_MOUSE M
115//#define MAGIC_KEY_VERSION V
116//#define MAGIC_KEY_STATUS S
117//#define MAGIC_KEY_CONSOLE C
118//#define MAGIC_KEY_LAYER0_ALT1 ESC
119//#define MAGIC_KEY_LAYER0_ALT2 GRAVE
120//#define MAGIC_KEY_LAYER0 0
121//#define MAGIC_KEY_LAYER1 1
122//#define MAGIC_KEY_LAYER2 2
123//#define MAGIC_KEY_LAYER3 3
124//#define MAGIC_KEY_LAYER4 4
125//#define MAGIC_KEY_LAYER5 5
126//#define MAGIC_KEY_LAYER6 6
127//#define MAGIC_KEY_LAYER7 7
128//#define MAGIC_KEY_LAYER8 8
129//#define MAGIC_KEY_LAYER9 9
130//#define MAGIC_KEY_BOOTLOADER PAUSE
131//#define MAGIC_KEY_LOCK CAPS
132//#define MAGIC_KEY_EEPROM E
133//#define MAGIC_KEY_NKRO N
134//#define MAGIC_KEY_SLEEP_LED Z
135
136/*
137 * Feature disable options
138 * These options are also useful to firmware size reduction.
139 */
140
141/* disable debug print */
142//#define NO_DEBUG
143
144/* disable print */
145//#define NO_PRINT
146
147/* disable action features */
148//#define NO_ACTION_LAYER
149//#define NO_ACTION_TAPPING
150//#define NO_ACTION_ONESHOT
151//#define NO_ACTION_MACRO
152//#define NO_ACTION_FUNCTION
153
154/*
155 * MIDI options
156 */
157
158/* Prevent use of disabled MIDI features in the keymap */
159//#define MIDI_ENABLE_STRICT 1
160
161/* enable basic MIDI features:
162 - MIDI notes can be sent when in Music mode is on
163*/
164//#define MIDI_BASIC
165
166/* enable advanced MIDI features:
167 - MIDI notes can be added to the keymap
168 - Octave shift and transpose
169 - Virtual sustain, portamento, and modulation wheel
170 - etc.
171*/
172//#define MIDI_ADVANCED
173
174/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
175//#define MIDI_TONE_KEYCODE_OCTAVES 1
176
177/*
178 * HD44780 LCD Display Configuration
179 */
180/*
181#define LCD_LINES 2 //< number of visible lines of the display
182#define LCD_DISP_LENGTH 16 //< visibles characters per line of the display
183
184#define LCD_IO_MODE 1 //< 0: memory mapped mode, 1: IO port mode
185
186#if LCD_IO_MODE
187#define LCD_PORT PORTB //< port for the LCD lines
188#define LCD_DATA0_PORT LCD_PORT //< port for 4bit data bit 0
189#define LCD_DATA1_PORT LCD_PORT //< port for 4bit data bit 1
190#define LCD_DATA2_PORT LCD_PORT //< port for 4bit data bit 2
191#define LCD_DATA3_PORT LCD_PORT //< port for 4bit data bit 3
192#define LCD_DATA0_PIN 4 //< pin for 4bit data bit 0
193#define LCD_DATA1_PIN 5 //< pin for 4bit data bit 1
194#define LCD_DATA2_PIN 6 //< pin for 4bit data bit 2
195#define LCD_DATA3_PIN 7 //< pin for 4bit data bit 3
196#define LCD_RS_PORT LCD_PORT //< port for RS line
197#define LCD_RS_PIN 3 //< pin for RS line
198#define LCD_RW_PORT LCD_PORT //< port for RW line
199#define LCD_RW_PIN 2 //< pin for RW line
200#define LCD_E_PORT LCD_PORT //< port for Enable line
201#define LCD_E_PIN 1 //< pin for Enable line
202#endif
203*/
204
diff --git a/keyboards/standaside/keymaps/default/config.h b/keyboards/standaside/keymaps/default/config.h
new file mode 100644
index 000000000..d533d806c
--- /dev/null
+++ b/keyboards/standaside/keymaps/default/config.h
@@ -0,0 +1,5 @@
1
2
3#pragma once
4
5// place overrides here
diff --git a/keyboards/standaside/keymaps/default/keymap.c b/keyboards/standaside/keymaps/default/keymap.c
new file mode 100644
index 000000000..0f13cb763
--- /dev/null
+++ b/keyboards/standaside/keymaps/default/keymap.c
@@ -0,0 +1,77 @@
1
2#include QMK_KEYBOARD_H
3
4#define _MAIN 0
5#define _RAISE 1
6#define _LOWER 2
7
8// Readability keycodes
9#define LOWER MO(_LOWER)
10#define RAISE MO(_RAISE)
11
12const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
13
14
15/* MAIN
16 * .-----------------------------------------------------------------------------------------------------------------------------------------------.
17 * | TAB | Q | W | E | R | T | Y | U | I | O | P | Backsp | Delete | 7 | 8 | 9 |
18 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
19 * | ESC | A | S | D | F | G | H | J | K | L | ; | ' | PgUp | 4 | 5 | 6 |
20 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
21 * | SHIFT | Z | X | C | V | B | N | M | , | . | / | ENTER | PgDn | 1 | 2 | 3 |
22 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
23 * | LCTRL | PAUS | GUI | ALT | Lower | Space | Space | Raise | Left | Down | Up | Right | Shift | 0 | . | ENTER |
24 * '-----------------------------------------------------------------------------------------------------------------------------------------------'
25 */
26
27 [_MAIN] = LAYOUT_ortho_4x16(
28 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, KC_DEL, KC_KP_7, KC_KP_8, KC_KP_9,
29 KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_PGUP, KC_KP_4, KC_KP_5, KC_KP_6,
30 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, KC_PGDN, KC_KP_1, KC_KP_2, KC_KP_3,
31 KC_LCTL, KC_PAUS, KC_LGUI, KC_LALT, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_RSFT, KC_KP_0, KC_KP_DOT, KC_PENT
32 ),
33
34/* RAISE
35 * .-----------------------------------------------------------------------------------------------------------------------------------------------.
36 * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | | Insert | | | |
37 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
38 * | | | | | | | | - | = | [ | ] | \ | Home | | | |
39 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
40 * | | | | | | | | | | | | PScr | End | | | |
41 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
42 * | | | | | | | | Next | Vol- | Vol+ | Play | NumLok | | | |
43 * '-----------------------------------------------------------------------------------------------------------------------------------------------'
44 */
45
46 [_RAISE] = LAYOUT_ortho_4x16(
47 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______, KC_INS, _______, _______, _______,
48 _______, _______, _______, _______, _______, _______, _______, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, KC_HOME, _______, _______, _______,
49 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_PSCR, KC_END, _______, _______, _______,
50 _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY, KC_NLCK, _______, _______, _______
51 ),
52
53/* LOWER
54 * .-----------------------------------------------------------------------------------------------------------------------------------------------.
55 * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | | | RGBPWR | Mode | Reset |
56 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
57 * | | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | { | } | | | | HUE+ | SAT+ | VAL+ |
58 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
59 * | | F7 | F8 | F9 | F10 | F11 | F12 | | | | | | | HUE- | SAT- | VAL- |
60 * |--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------+--------|
61 * | | | | | | | | | | | Mute | | Plain | Rainbo | Larsen |
62 * '-----------------------------------------------------------------------------------------------------------------------------------------------'
63 */
64
65 [_LOWER] = LAYOUT_ortho_4x16(
66 KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, _______, _______, RGB_TOG, RGB_MOD, RESET,
67 _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, _______, RGB_HUI, RGB_SAI, RGB_VAI,
68 _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, _______, _______, _______, _______, _______, _______, RGB_HUD, RGB_SAD, RGB_VAD,
69 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MUTE, _______, RGB_M_P, RGB_M_R, RGB_M_K
70 ),
71
72};
73
74
75bool process_record_user(uint16_t keycode, keyrecord_t *record) {
76 return true;
77} \ No newline at end of file
diff --git a/keyboards/standaside/readme.md b/keyboards/standaside/readme.md
new file mode 100644
index 000000000..ca1cfb276
--- /dev/null
+++ b/keyboards/standaside/readme.md
@@ -0,0 +1,15 @@
1# Stand Aside
2
3![Stand Aside](https://i.imgur.com/X6Katar.png)
4
5A compact 60% keyboard designed by Fate Everywhere. Born out of the desire for a Planck with a numpad for technical work. Available for sale (kit and completed) once the store comes up.
6
7Keyboard Maintainer: [Fate Everywhere](https://github.com/fateeverywhere)
8Hardware Supported: Mark 3 Stand Aside.
9Hardware Availability: Seven Store (https://store.7storm.org).
10
11Make example for this keyboard (after setting up your build environment):
12
13 make standaside:default
14
15See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). \ No newline at end of file
diff --git a/keyboards/standaside/rules.mk b/keyboards/standaside/rules.mk
new file mode 100644
index 000000000..a7ebc21fa
--- /dev/null
+++ b/keyboards/standaside/rules.mk
@@ -0,0 +1,73 @@
1# MCU name
2MCU = atmega32u4
3
4# Processor frequency.
5# This will define a symbol, F_CPU, in all source code files equal to the
6# processor frequency in Hz. You can then use this symbol in your source code to
7# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
8# automatically to create a 32-bit value in your source code.
9#
10# This will be an integer division of F_USB below, as it is sourced by
11# F_USB after it has run through any CPU prescalers. Note that this value
12# does not *change* the processor frequency - it should merely be updated to
13# reflect the processor speed set externally so that the code can use accurate
14# software delays.
15F_CPU = 16000000
16
17#
18# LUFA specific
19#
20# Target architecture (see library "Board Types" documentation).
21ARCH = AVR8
22
23# Input clock frequency.
24# This will define a symbol, F_USB, in all source code files equal to the
25# input clock frequency (before any prescaling is performed) in Hz. This value may
26# differ from F_CPU if prescaling is used on the latter, and is required as the
27# raw input clock is fed directly to the PLL sections of the AVR for high speed
28# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
29# at the end, this will be done automatically to create a 32-bit value in your
30# source code.
31#
32# If no clock division is performed on the input clock inside the AVR (via the
33# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
34F_USB = $(F_CPU)
35
36# Interrupt driven control endpoint task(+60)
37OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
38
39# Boot Section Size in *bytes*
40# Teensy halfKay 512
41# Teensy++ halfKay 1024
42# Atmel DFU loader 4096
43# LUFA bootloader 4096
44# USBaspLoader 2048
45# OPT_DEFS += -DBOOTLOADER_SIZE=4096
46
47# Bootloader
48# This definition is optional, and if your keyboard supports multiple bootloaders of
49# different sizes, comment this out, and the correct address will be loaded
50# automatically (+60). See bootloader.mk for all options.
51BOOTLOADER = atmel_dfu
52
53# Build Options
54# change yes to no to disable
55#
56BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration(+1000)
57MOUSEKEY_ENABLE = no # Mouse keys(+4700)
58EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
59CONSOLE_ENABLE = yes # Console for debug(+400)
60COMMAND_ENABLE = yes # Commands for debug and configuration
61# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
62SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
63# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
64NKRO_ENABLE = no # USB Nkey Rollover
65BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default
66MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config)
67UNICODE_ENABLE = no # Unicode
68BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
69AUDIO_ENABLE = no # Audio output on port C6
70FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
71HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400)
72RGBLIGHT_ENABLE = yes # Enable RGB underlighting support
73
diff --git a/keyboards/standaside/standaside.c b/keyboards/standaside/standaside.c
new file mode 100644
index 000000000..904e92d33
--- /dev/null
+++ b/keyboards/standaside/standaside.c
@@ -0,0 +1,14 @@
1
2#include "standaside.h"
3bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
4 // put your per-action keyboard code here
5 // runs for every action, just before processing by the firmware
6
7 return process_record_user(keycode, record);
8}
9
10void led_set_kb(uint8_t usb_led) {
11 // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
12
13 led_set_user(usb_led);
14}
diff --git a/keyboards/standaside/standaside.h b/keyboards/standaside/standaside.h
new file mode 100644
index 000000000..b66169639
--- /dev/null
+++ b/keyboards/standaside/standaside.h
@@ -0,0 +1,29 @@
1
2#ifndef STANDASIDE_H
3#define STANDASIDE_H
4
5#include "quantum.h"
6#define ___ KC_NO
7
8// This a shortcut to help you visually see your layout.
9// The first section contains all of the arguments
10// The second converts the arguments into a two-dimensional array
11
12#define LAYOUT_ortho_4x16( \
13 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K10, K11, K12, K13, K14, K15, \
14 K16, K17, K18, K19, K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K30, K31, \
15 K32, K33, K34, K35, K36, K37, K38, K39, K40, K41, K42, K43, K44, K45, K46, K47, \
16 K48, K49, K50, K51, K52, K53, K54, K55, K56, K57, K58, K59, K60, K61, K62, K63 \
17) \
18{ \
19 { K00, K02, K04, K06, K08, K10, K12, K14 }, \
20 { K01, K03, K05, K07, K09, K11, K13, K15 }, \
21 { K16, K18, K20, K22, K24, K26, K28, K30 }, \
22 { K17, K19, K21, K23, K25, K27, K29, K31 }, \
23 { K32, K34, K36, K38, K40, K42, K44, K46 }, \
24 { K33, K35, K37, K39, K41, K43, K45, K47 }, \
25 { K48, K50, K52, K54, K56, K58, K60, K62 }, \
26 { K49, K51, K53, K55, K57, K59, K61, K63 } \
27}
28
29#endif