aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/acheron/shark/README.md17
-rw-r--r--keyboards/acheron/shark/config.h261
-rw-r--r--keyboards/acheron/shark/info.json63
-rw-r--r--keyboards/acheron/shark/keymaps/default/keymap.c105
-rw-r--r--keyboards/acheron/shark/rules.mk25
-rw-r--r--keyboards/acheron/shark/shark.c51
-rw-r--r--keyboards/acheron/shark/shark.h39
7 files changed, 561 insertions, 0 deletions
diff --git a/keyboards/acheron/shark/README.md b/keyboards/acheron/shark/README.md
new file mode 100644
index 000000000..fbe9429f1
--- /dev/null
+++ b/keyboards/acheron/shark/README.md
@@ -0,0 +1,17 @@
1# Acheron Aχξρων 40-SM-O-MX-TH-WI (Codename "SharkPCB") QMK firmware
2
3<p align="center">
4 <img align="middle" src="https://raw.githubusercontent.com/Gondolindrim/acheronLibrary/master/graphics/acheronLong.png" width="400">
5</p>
6
7This is the QMK firmware repository for the Shark, updated until [revision Alpha](https://github.com/Gondolindrim/SharkPCB/releases/tag/Alpha).
8
9The SharkPCB is an Open-Hardware guidelines compliant PCB which files can be found at [this link](https://github.com/Gondolindrim/SharkPCB). Its designer and maintainer is [Gondolindrim](https://github.com/Gondolindrim).
10
11See the [AcheronDocs](https://gondolindrim.github.io/AcheronDocs/shark/intro.html) page for the SharkPCB full documentation.
12
13Make example for this keyboard (after setting up your build environment):
14
15 make acheron/shark:default
16
17See 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).
diff --git a/keyboards/acheron/shark/config.h b/keyboards/acheron/shark/config.h
new file mode 100644
index 000000000..5a46ac5b7
--- /dev/null
+++ b/keyboards/acheron/shark/config.h
@@ -0,0 +1,261 @@
1/*
2Copyright 2019 Alvaro Volpato and Steve
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#include "config_common.h"
21
22/* USB Device descriptor parameter */
23#define VENDOR_ID 0xFEED
24#define PRODUCT_ID 0xAC11
25#define DEVICE_VER 0x0001
26#define MANUFACTURER AcheronProject
27#define PRODUCT SharkPCB
28#define DESCRIPTION Ortho 40 PCB
29
30/* key matrix size */
31#define MATRIX_ROWS 4
32#define MATRIX_COLS 12
33
34/*
35 * Keyboard Matrix Assignments
36 *
37 * Change this to how you wired your keyboard
38 * COLS: AVR pins used for columns, left to right
39 * ROWS: AVR pins used for rows, top to bottom
40 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
41 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
42 *
43*/
44#define MATRIX_ROW_PINS {B4, A15, B10, B2}
45#define MATRIX_COL_PINS {B1, B12, A1, A7, A5, A4, A3, A2, A0, C15, C14, C13}
46//{C13, C14, C15, A0,A2,A3,A4,A5,A6, A1,B12,B1}
47/* Unused pins, in the default layout, are:
48EncA (B6) because it is not used in the default PCB
49All Extra pins (A8, B15, B14, B13, B3, B5, B8, B9) , for the same reason;
50B0, which is unconnected on the PCB
51*/
52//#define UNUSED_PINS { B0, B6, B13, B14, B15, B8, B9, B5, B3 }
53
54/* COL2ROW, ROW2COL*/
55#define DIODE_DIRECTION COL2ROW
56
57#define BACKLIGHT_PIN B0
58#define BACKLIGHT_PWM_DRIVER PWMD3
59#define BACKLIGHT_PWM_CHANNEL 3
60
61/*
62 * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
63 */
64//#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
65
66// #define BACKLIGHT_PIN B7
67// #define BACKLIGHT_BREATHING
68// #define BACKLIGHT_LEVELS 3
69
70// #define RGB_DI_PIN E2
71// #ifdef RGB_DI_PIN
72// #define RGBLED_NUM 16
73// #define RGBLIGHT_HUE_STEP 8
74// #define RGBLIGHT_SAT_STEP 8
75// #define RGBLIGHT_VAL_STEP 8
76// #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
77// #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
78// /*== all animations enable ==*/
79// #define RGBLIGHT_ANIMATIONS
80// /*== or choose animations ==*/
81// #define RGBLIGHT_EFFECT_BREATHING
82// #define RGBLIGHT_EFFECT_RAINBOW_MOOD
83// #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
84// #define RGBLIGHT_EFFECT_SNAKE
85// #define RGBLIGHT_EFFECT_KNIGHT
86// #define RGBLIGHT_EFFECT_CHRISTMAS
87// #define RGBLIGHT_EFFECT_STATIC_GRADIENT
88// #define RGBLIGHT_EFFECT_RGB_TEST
89// #define RGBLIGHT_EFFECT_ALTERNATING
90// /*== customize breathing effect ==*/
91// /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
92// #define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
93// /*==== use exp() and sin() ====*/
94// #define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
95// #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
96// #endif
97
98/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
99#define DEBOUNCE 5
100
101/* define if matrix has ghost (lacks anti-ghosting diodes) */
102//#define MATRIX_HAS_GHOST
103
104/* number of backlight levels */
105
106/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
107#define LOCKING_SUPPORT_ENABLE
108/* Locking resynchronize hack */
109#define LOCKING_RESYNC_ENABLE
110
111/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
112 * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
113 */
114// #define GRAVE_ESC_CTRL_OVERRIDE
115
116/*
117 * Force NKRO
118 *
119 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
120 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
121 * makefile for this to work.)
122 *
123 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
124 * until the next keyboard reset.
125 *
126 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
127 * fully operational during normal computer usage.
128 *
129 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
130 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
131 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
132 * power-up.
133 *
134 */
135//#define FORCE_NKRO
136
137/*
138 * Magic Key Options
139 *
140 * Magic keys are hotkey commands that allow control over firmware functions of
141 * the keyboard. They are best used in combination with the HID Listen program,
142 * found here: https://www.pjrc.com/teensy/hid_listen.html
143 *
144 * The options below allow the magic key functionality to be changed. This is
145 * useful if your keyboard/keypad is missing keys and you want magic key support.
146 *
147 */
148
149/* key combination for magic key command */
150/* defined by default; to change, uncomment and set to the combination you want */
151// #define IS_COMMAND() (get_mods() == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)))
152
153/* control how magic key switches layers */
154//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true
155//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true
156//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false
157
158/* override magic key keymap */
159//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS
160//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS
161//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM
162//#define MAGIC_KEY_HELP H
163//#define MAGIC_KEY_HELP_ALT SLASH
164//#define MAGIC_KEY_DEBUG D
165//#define MAGIC_KEY_DEBUG_MATRIX X
166//#define MAGIC_KEY_DEBUG_KBD K
167//#define MAGIC_KEY_DEBUG_MOUSE M
168//#define MAGIC_KEY_VERSION V
169//#define MAGIC_KEY_STATUS S
170//#define MAGIC_KEY_CONSOLE C
171//#define MAGIC_KEY_LAYER0 0
172//#define MAGIC_KEY_LAYER0_ALT GRAVE
173//#define MAGIC_KEY_LAYER1 1
174//#define MAGIC_KEY_LAYER2 2
175//#define MAGIC_KEY_LAYER3 3
176//#define MAGIC_KEY_LAYER4 4
177//#define MAGIC_KEY_LAYER5 5
178//#define MAGIC_KEY_LAYER6 6
179//#define MAGIC_KEY_LAYER7 7
180//#define MAGIC_KEY_LAYER8 8
181//#define MAGIC_KEY_LAYER9 9
182//#define MAGIC_KEY_BOOTLOADER B
183//#define MAGIC_KEY_BOOTLOADER_ALT ESC
184//#define MAGIC_KEY_LOCK CAPS
185//#define MAGIC_KEY_EEPROM E
186//#define MAGIC_KEY_EEPROM_CLEAR BSPACE
187//#define MAGIC_KEY_NKRO N
188//#define MAGIC_KEY_SLEEP_LED Z
189
190/*
191 * Feature disable options
192 * These options are also useful to firmware size reduction.
193 */
194
195/* disable debug print */
196//#define NO_DEBUG
197
198/* disable print */
199//#define NO_PRINT
200
201/* disable action features */
202//#define NO_ACTION_LAYER
203//#define NO_ACTION_TAPPING
204//#define NO_ACTION_ONESHOT
205//#define NO_ACTION_MACRO
206//#define NO_ACTION_FUNCTION
207
208/*
209 * MIDI options
210 */
211
212/* Prevent use of disabled MIDI features in the keymap */
213//#define MIDI_ENABLE_STRICT 1
214
215/* enable basic MIDI features:
216 - MIDI notes can be sent when in Music mode is on
217*/
218//#define MIDI_BASIC
219
220/* enable advanced MIDI features:
221 - MIDI notes can be added to the keymap
222 - Octave shift and transpose
223 - Virtual sustain, portamento, and modulation wheel
224 - etc.
225*/
226//#define MIDI_ADVANCED
227
228/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
229//#define MIDI_TONE_KEYCODE_OCTAVES 1
230
231/*
232 * HD44780 LCD Display Configuration
233 */
234/*
235#define LCD_LINES 2 //< number of visible lines of the display
236#define LCD_DISP_LENGTH 16 //< visibles characters per line of the display
237
238#define LCD_IO_MODE 1 //< 0: memory mapped mode, 1: IO port mode
239
240#if LCD_IO_MODE
241#define LCD_PORT PORTB //< port for the LCD lines
242#define LCD_DATA0_PORT LCD_PORT //< port for 4bit data bit 0
243#define LCD_DATA1_PORT LCD_PORT //< port for 4bit data bit 1
244#define LCD_DATA2_PORT LCD_PORT //< port for 4bit data bit 2
245#define LCD_DATA3_PORT LCD_PORT //< port for 4bit data bit 3
246#define LCD_DATA0_PIN 4 //< pin for 4bit data bit 0
247#define LCD_DATA1_PIN 5 //< pin for 4bit data bit 1
248#define LCD_DATA2_PIN 6 //< pin for 4bit data bit 2
249#define LCD_DATA3_PIN 7 //< pin for 4bit data bit 3
250#define LCD_RS_PORT LCD_PORT //< port for RS line
251#define LCD_RS_PIN 3 //< pin for RS line
252#define LCD_RW_PORT LCD_PORT //< port for RW line
253#define LCD_RW_PIN 2 //< pin for RW line
254#define LCD_E_PORT LCD_PORT //< port for Enable line
255#define LCD_E_PIN 1 //< pin for Enable line
256#endif
257*/
258
259/* Bootmagic Lite key configuration */
260// #define BOOTMAGIC_LITE_ROW 0
261// #define BOOTMAGIC_LITE_COLUMN 0
diff --git a/keyboards/acheron/shark/info.json b/keyboards/acheron/shark/info.json
new file mode 100644
index 000000000..a2ea784d9
--- /dev/null
+++ b/keyboards/acheron/shark/info.json
@@ -0,0 +1,63 @@
1{
2 "keyboard_name": "SharkPCB",
3 "keyboard_folder": "acheron/shark",
4 "url": "https://gondolindrim.github.io/AcheronDocs/shark/intro.html",
5 "maintainer": "Gondolindrim",
6 "width": 12,
7 "height": 4,
8 "layouts": {
9 "LAYOUT_ortho_4x12": {
10 "key_count": 48,
11 "layout": [
12 { "x": 0, "y": 0 },
13 { "x": 1, "y": 0 },
14 { "x": 2, "y": 0 },
15 { "x": 3, "y": 0 },
16 { "x": 4, "y": 0 },
17 { "x": 5, "y": 0 },
18 { "x": 6, "y": 0 },
19 { "x": 7, "y": 0 },
20 { "x": 8, "y": 0 },
21 { "x": 9, "y": 0 },
22 { "x": 10, "y": 0 },
23 { "x": 11, "y": 0 },
24 { "x": 0, "y": 1 },
25 { "x": 1, "y": 1 },
26 { "x": 2, "y": 1 },
27 { "x": 3, "y": 1 },
28 { "x": 4, "y": 1 },
29 { "x": 5, "y": 1 },
30 { "x": 6, "y": 1 },
31 { "x": 7, "y": 1 },
32 { "x": 8, "y": 1 },
33 { "x": 9, "y": 1 },
34 { "x": 10, "y": 1 },
35 { "x": 11, "y": 1 },
36 { "x": 0, "y": 2 },
37 { "x": 1, "y": 2 },
38 { "x": 2, "y": 2 },
39 { "x": 3, "y": 2 },
40 { "x": 4, "y": 2 },
41 { "x": 5, "y": 2 },
42 { "x": 6, "y": 2 },
43 { "x": 7, "y": 2 },
44 { "x": 8, "y": 2 },
45 { "x": 9, "y": 2 },
46 { "x": 10, "y": 2 },
47 { "x": 11, "y": 2 },
48 { "x": 0, "y": 3 },
49 { "x": 1, "y": 3 },
50 { "x": 2, "y": 3 },
51 { "x": 3, "y": 3 },
52 { "x": 4, "y": 3 },
53 { "x": 5, "y": 3 },
54 { "x": 6, "y": 3 },
55 { "x": 7, "y": 3 },
56 { "x": 8, "y": 3 },
57 { "x": 9, "y": 3 },
58 { "x": 10, "y": 3 },
59 { "x": 11, "y": 3 }
60 ]
61 }
62 }
63}
diff --git a/keyboards/acheron/shark/keymaps/default/keymap.c b/keyboards/acheron/shark/keymaps/default/keymap.c
new file mode 100644
index 000000000..a661b835b
--- /dev/null
+++ b/keyboards/acheron/shark/keymaps/default/keymap.c
@@ -0,0 +1,105 @@
1/* Copyright 2019
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#include QMK_KEYBOARD_H
17
18enum layers {
19 _QWERTY = 0,
20 _LOWER,
21 _RAISE,
22 _ADJUST,
23};
24
25#define LOWER MO(_LOWER)
26#define RAISE MO(_RAISE)
27#define ADJUST MO(_ADJUST)
28
29const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
30/* Qwerty
31 * ,-----------------------------------------------------------------------------------.
32 * | Tab | Q | W | E | R | T | Y | U | I | O | P | Bksp |
33 * |------+------+------+------+------+-------------+------+------+------+------+------|
34 * | Esc | A | S | D | F | G | H | J | K | L | ; | " |
35 * |------+------+------+------+------+------|------+------+------+------+------+------|
36 * | Shift| Z | X | C | V | B | N | M | , | . | / |Enter |
37 * |------+------+------+------+------+------+------+------+------+------+------+------|
38 * | Ctrl | Alt | GUI | |Lower | Space| Space|Raise | Left | Down | Up |Right |
39 * `-----------------------------------------------------------------------------------'
40 */
41[_QWERTY] = LAYOUT_ortho_4x12( \
42 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, \
43 KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, \
44 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT , \
45 KC_LCTL, KC_LALT, KC_LGUI, _______, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT \
46),
47
48/* Lower
49 * ,-----------------------------------------------------------------------------------.
50 * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Bksp |
51 * |------+------+------+------+------+-------------+------+------+------+------+------|
52 * | Del | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | | \ | | |
53 * |------+------+------+------+------+------|------+------+------+------+------+------|
54 * | | F7 | F8 | F9 | F10 | F11 | F12 |ISO ~ |ISO | | | |Enter |
55 * |------+------+------+------+------+------+------+------+------+------+------+------|
56 * | | | | | | | | Next | Vol- | Vol+ | Play |
57 * `-----------------------------------------------------------------------------------'
58 */
59[_LOWER] = LAYOUT_ortho_4x12( \
60 KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, \
61 KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, \
62 _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, BL_TOGG, BL_INC , BL_DEC , _______, _______, \
63 _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY \
64),
65
66/* Raise
67 * ,-----------------------------------------------------------------------------------.
68 * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp |
69 * |------+------+------+------+------+-------------+------+------+------+------+------|
70 * | Del | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ |
71 * |------+------+------+------+------+------|------+------+------+------+------+------|
72 * | | F7 | F8 | F9 | F10 | F11 | F12 |ISO # |ISO / | | |Enter |
73 * |------+------+------+------+------+------+------+------+------+------+------+------|
74 * | | | | | | | | Next | Vol- | Vol+ | Play |
75 * `-----------------------------------------------------------------------------------'
76 */
77[_RAISE] = LAYOUT_ortho_4x12( \
78 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, \
79 KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, \
80 _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, _______, _______, _______, \
81 _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY \
82),
83
84/* Adjust (Lower + Raise)
85 * ,-----------------------------------------------------------------------------------.
86 * | | Reset| | | | | | | | | | Del |
87 * |------+------+------+------+------+-------------+------+------+------+------+------|
88 * | | | | | | | | | | | | |
89 * |------+------+------+------+------+------|------+------+------+------+------+------|
90 * | | | | | | | | | | | | |
91 * |------+------+------+------+------+------+------+------+------+------+------+------|
92 * | | | | | | | | | | | |
93 * `-----------------------------------------------------------------------------------'
94 */
95[_ADJUST] = LAYOUT_ortho_4x12( \
96 _______, RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL, \
97 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,\
98 _______, _______, RGB_TOG, RGB_MOD, _______, _______, _______, _______, _______, _______, _______, _______,\
99 _______, BL_TOGG, BL_INC, BL_DEC , _______, _______, _______, _______, _______, _______, _______, _______ \
100)
101};
102
103layer_state_t layer_state_set_user(layer_state_t state) {
104 return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
105}
diff --git a/keyboards/acheron/shark/rules.mk b/keyboards/acheron/shark/rules.mk
new file mode 100644
index 000000000..30c4593db
--- /dev/null
+++ b/keyboards/acheron/shark/rules.mk
@@ -0,0 +1,25 @@
1# MCU name
2MCU = STM32F303
3
4# Build Options
5# change yes to no to disable
6#
7BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration
8MOUSEKEY_ENABLE = yes # Mouse keys
9EXTRAKEY_ENABLE = yes # Audio control and System control
10CONSOLE_ENABLE = yes # Console for debug
11COMMAND_ENABLE = yes # Commands for debug and configuration
12# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
13SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
14# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
15NKRO_ENABLE = no # USB Nkey Rollover
16BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default
17RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
18MIDI_ENABLE = no # MIDI support
19UNICODE_ENABLE = no # Unicode
20BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
21AUDIO_ENABLE = no # Audio output on port C6
22FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
23HD44780_ENABLE = no # Enable support for HD44780 based LCDs
24
25LAYOUTS = ortho_4x12
diff --git a/keyboards/acheron/shark/shark.c b/keyboards/acheron/shark/shark.c
new file mode 100644
index 000000000..b15c8a270
--- /dev/null
+++ b/keyboards/acheron/shark/shark.c
@@ -0,0 +1,51 @@
1/* Copyright 2019 Álvaro "Gondolindrim" Volpato
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#include "shark.h"
17
18// Optional override functions below.
19// You can leave any or all of these undefined.
20// These are only required if you want to perform custom actions.
21
22/*
23
24void matrix_init_kb(void) {
25 // put your keyboard start-up code here
26 // runs once when the firmware starts up
27
28 matrix_init_user();
29}
30
31void matrix_scan_kb(void) {
32 // put your looping keyboard code here
33 // runs every cycle (a lot)
34
35 matrix_scan_user();
36}
37
38bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
39 // put your per-action keyboard code here
40 // runs for every action, just before processing by the firmware
41
42 return process_record_user(keycode, record);
43}
44
45void led_set_kb(uint8_t usb_led) {
46 // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
47
48 led_set_user(usb_led);
49}
50
51*/
diff --git a/keyboards/acheron/shark/shark.h b/keyboards/acheron/shark/shark.h
new file mode 100644
index 000000000..d58b72548
--- /dev/null
+++ b/keyboards/acheron/shark/shark.h
@@ -0,0 +1,39 @@
1/* Copyright 2019 Álvaro "Gondolindrim" Volpato
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#pragma once
17
18#include "quantum.h"
19
20/* This a shortcut to help you visually see your layout.
21 *
22 * The first section contains all of the arguments representing the physical
23 * layout of the board and position of the keys.
24 *
25 * The second converts the arguments into a two-dimensional array which
26 * represents the switch matrix.
27 */
28#define LAYOUT_ortho_4x12( \
29 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, \
30 K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, \
31 K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, \
32 K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B \
33) \
34{ \
35 { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B }, \
36 { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B }, \
37 { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B }, \
38 { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B } \
39}