aboutsummaryrefslogtreecommitdiff
path: root/keyboards/fleuron
diff options
context:
space:
mode:
authorJames Underwood <ju0@users.noreply.github.com>2018-08-07 17:47:49 -0700
committerDrashna Jaelre <drashna@live.com>2018-08-07 17:47:49 -0700
commit69fef83b0ea6dde3d20e2b239f8a7b54c42ddb12 (patch)
tree0da4d2b16eb120b1a9fe51a7806c34cec8dd30eb /keyboards/fleuron
parentfd085837e1ee75c93a568f055fddb5f73bd46ea5 (diff)
downloadqmk_firmware-69fef83b0ea6dde3d20e2b239f8a7b54c42ddb12.tar.gz
qmk_firmware-69fef83b0ea6dde3d20e2b239f8a7b54c42ddb12.zip
Keyboard: Adds Fleuron v1.0 keyboard (#3571)
* Adds Fleuron keyboard directory and default layout * Adds Fleuron keyboard directory and default layout * adds double zero macro, and updates to the new macro methodology * adds raise and lower layers * removes makefile from default layout, turns off mousekey, console, and command in rules.mk * makes upper right key a bksp in default layout, adds .json layout file * updates to default layout * tweak default layout jusabit * fix raise and lower switch case, and scoot a few keycodes around * make changes for PR #3571 * fixing erros for PR #3571 * adds Dollartacos first custom keymap * fixes for PR #3571
Diffstat (limited to 'keyboards/fleuron')
-rw-r--r--keyboards/fleuron/config.h194
-rw-r--r--keyboards/fleuron/fleuron.c43
-rw-r--r--keyboards/fleuron/fleuron.h44
-rw-r--r--keyboards/fleuron/info.json109
-rw-r--r--keyboards/fleuron/keymaps/default/config.h18
-rw-r--r--keyboards/fleuron/keymaps/default/keymap.c168
-rw-r--r--keyboards/fleuron/keymaps/default/readme.md1
-rw-r--r--keyboards/fleuron/keymaps/dollartacos/config.h18
-rw-r--r--keyboards/fleuron/keymaps/dollartacos/keymap.c162
-rw-r--r--keyboards/fleuron/keymaps/dollartacos/readme.md1
-rw-r--r--keyboards/fleuron/readme.md16
-rw-r--r--keyboards/fleuron/rules.mk71
12 files changed, 845 insertions, 0 deletions
diff --git a/keyboards/fleuron/config.h b/keyboards/fleuron/config.h
new file mode 100644
index 000000000..a3ff43b06
--- /dev/null
+++ b/keyboards/fleuron/config.h
@@ -0,0 +1,194 @@
1/*
2Copyright 2018 James Underwood
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#ifndef CONFIG_H
19#define CONFIG_H
20
21#include "config_common.h"
22
23/* USB Device descriptor parameter */
24#define VENDOR_ID 0xFEED
25#define PRODUCT_ID 0x6060
26#define DEVICE_VER 0x0001
27#define MANUFACTURER You
28#define PRODUCT Fleuron v1
29#define DESCRIPTION A 6x16 ortho
30
31/* key matrix size */
32#define MATRIX_ROWS 6
33#define MATRIX_COLS 16
34
35/*
36 * Keyboard Matrix Assignments
37 *
38 * Change this to how you wired your keyboard
39 * COLS: AVR pins used for columns, left to right
40 * ROWS: AVR pins used for rows, top to bottom
41 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
42 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
43 *
44*/
45#define MATRIX_ROW_PINS { F0, F1, F4, F5, F6, F7 }
46#define MATRIX_COL_PINS { C7, B6, B3, B5, B4, D7, D4, D5, D3, D2, D1, D0, B7, B0, B1, B2 }
47#define UNUSED_PINS
48
49/* COL2ROW, ROW2COL, or CUSTOM_MATRIX */
50#define DIODE_DIRECTION COL2ROW
51
52// #define BACKLIGHT_PIN B7
53// #define BACKLIGHT_BREATHING
54// #define BACKLIGHT_LEVELS 3
55
56
57/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
58#define DEBOUNCING_DELAY 5
59
60/* define if matrix has ghost (lacks anti-ghosting diodes) */
61//#define MATRIX_HAS_GHOST
62
63/* number of backlight levels */
64
65/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
66#define LOCKING_SUPPORT_ENABLE
67/* Locking resynchronize hack */
68#define LOCKING_RESYNC_ENABLE
69
70/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
71 * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
72 */
73// #define GRAVE_ESC_CTRL_OVERRIDE
74
75/*
76 * Force NKRO
77 *
78 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
79 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
80 * makefile for this to work.)
81 *
82 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
83 * until the next keyboard reset.
84 *
85 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
86 * fully operational during normal computer usage.
87 *
88 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
89 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
90 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
91 * power-up.
92 *
93 */
94//#define FORCE_NKRO
95
96/*
97 * Magic Key Options
98 *
99 * Magic keys are hotkey commands that allow control over firmware functions of
100 * the keyboard. They are best used in combination with the HID Listen program,
101 * found here: https://www.pjrc.com/teensy/hid_listen.html
102 *
103 * The options below allow the magic key functionality to be changed. This is
104 * useful if your keyboard/keypad is missing keys and you want magic key support.
105 *
106 */
107
108/* key combination for magic key command */
109#define IS_COMMAND() ( \
110 keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
111)
112
113/* control how magic key switches layers */
114//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true
115//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true
116//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false
117
118/* override magic key keymap */
119//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS
120//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS
121//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM
122//#define MAGIC_KEY_HELP1 H
123//#define MAGIC_KEY_HELP2 SLASH
124//#define MAGIC_KEY_DEBUG D
125//#define MAGIC_KEY_DEBUG_MATRIX X
126//#define MAGIC_KEY_DEBUG_KBD K
127//#define MAGIC_KEY_DEBUG_MOUSE M
128//#define MAGIC_KEY_VERSION V
129//#define MAGIC_KEY_STATUS S
130//#define MAGIC_KEY_CONSOLE C
131//#define MAGIC_KEY_LAYER0_ALT1 ESC
132//#define MAGIC_KEY_LAYER0_ALT2 GRAVE
133//#define MAGIC_KEY_LAYER0 0
134//#define MAGIC_KEY_LAYER1 1
135//#define MAGIC_KEY_LAYER2 2
136//#define MAGIC_KEY_LAYER3 3
137//#define MAGIC_KEY_LAYER4 4
138//#define MAGIC_KEY_LAYER5 5
139//#define MAGIC_KEY_LAYER6 6
140//#define MAGIC_KEY_LAYER7 7
141//#define MAGIC_KEY_LAYER8 8
142//#define MAGIC_KEY_LAYER9 9
143//#define MAGIC_KEY_BOOTLOADER PAUSE
144//#define MAGIC_KEY_LOCK CAPS
145//#define MAGIC_KEY_EEPROM E
146//#define MAGIC_KEY_NKRO N
147//#define MAGIC_KEY_SLEEP_LED Z
148
149/*
150 * Feature disable options
151 * These options are also useful to firmware size reduction.
152 */
153
154/* disable debug print */
155//#define NO_DEBUG
156
157/* disable print */
158//#define NO_PRINT
159
160/* disable action features */
161//#define NO_ACTION_LAYER
162//#define NO_ACTION_TAPPING
163//#define NO_ACTION_ONESHOT
164//#define NO_ACTION_MACRO
165//#define NO_ACTION_FUNCTION
166
167/*
168 * MIDI options
169 */
170
171/* Prevent use of disabled MIDI features in the keymap */
172//#define MIDI_ENABLE_STRICT 1
173
174/* enable basic MIDI features:
175 - MIDI notes can be sent when in Music mode is on
176*/
177//#define MIDI_BASIC
178
179/* enable advanced MIDI features:
180 - MIDI notes can be added to the keymap
181 - Octave shift and transpose
182 - Virtual sustain, portamento, and modulation wheel
183 - etc.
184*/
185//#define MIDI_ADVANCED
186
187/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
188//#define MIDI_TONE_KEYCODE_OCTAVES 1
189
190#define RGB_DI_PIN E6 // The pin the LED strip is connected to
191#define RGBLED_NUM 18 // Number of LEDs in your strip
192#define RGBLIGHT_ANIMATIONS
193
194#endif
diff --git a/keyboards/fleuron/fleuron.c b/keyboards/fleuron/fleuron.c
new file mode 100644
index 000000000..12f950f36
--- /dev/null
+++ b/keyboards/fleuron/fleuron.c
@@ -0,0 +1,43 @@
1/* Copyright 2018 James Underwood
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 "fleuron.h"
17
18void matrix_init_kb(void) {
19 // put your keyboard start-up code here
20 // runs once when the firmware starts up
21
22 matrix_init_user();
23}
24
25void matrix_scan_kb(void) {
26 // put your looping keyboard code here
27 // runs every cycle (a lot)
28
29 matrix_scan_user();
30}
31
32bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
33 // put your per-action keyboard code here
34 // runs for every action, just before processing by the firmware
35
36 return process_record_user(keycode, record);
37}
38
39void led_set_kb(uint8_t usb_led) {
40 // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
41
42 led_set_user(usb_led);
43}
diff --git a/keyboards/fleuron/fleuron.h b/keyboards/fleuron/fleuron.h
new file mode 100644
index 000000000..abdccf237
--- /dev/null
+++ b/keyboards/fleuron/fleuron.h
@@ -0,0 +1,44 @@
1/* Copyright 2018 James Underwood
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#ifndef FLEURON_H
17#define FLEURON_H
18
19#include "quantum.h"
20
21// This a shortcut to help you visually see your layout.
22// The following is an example using the Planck MIT layout
23// The first section contains all of the arguments
24// The second converts the arguments into a two-dimensional array
25#define LAYOUT_ortho_6x16( \
26 k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, k0e, k0f, \
27 k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1d, k1e, k1f, \
28 k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2d, k2e, k2f, \
29 k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, k3d, k3e, k3f, \
30 k40, k41, k42, k43, k44, k45, k46, k47, k48, k49, k4a, k4b, k4c, k4d, k4e, k4f, \
31 k50, k51, k52, k53, k54, k55, k56, k57, k58, k59, k5a, k5b, k5c, k5d, k5e, k5f \
32) \
33{ \
34 { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, k0e, k0f }, \
35 { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1d, k1e, k1f }, \
36 { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2d, k2e, k2f }, \
37 { k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, k3d, k3e, k3f }, \
38 { k40, k41, k42, k43, k44, k45, k46, k47, k48, k49, k4a, k4b, k4c, k4d, k4e, k4f }, \
39 { k50, k51, k52, k53, k54, k55, k56, k57, k58, k59, k5a, k5b, k5c, k5d, k5e, k5f } \
40}
41
42#define LAYOUT_fleuron_grid LAYOUT_ortho_6x16
43
44#endif
diff --git a/keyboards/fleuron/info.json b/keyboards/fleuron/info.json
new file mode 100644
index 000000000..2f357d3bf
--- /dev/null
+++ b/keyboards/fleuron/info.json
@@ -0,0 +1,109 @@
1{
2 "keyboard_name": "Fleuron v1.0",
3 "url": "",
4 "maintainer": "qmk",
5 "bootloader": "",
6 "width": 16,
7 "height": 6,
8 "layouts": {
9 "LAYOUT_ortho_6x16": {
10 "layout": [
11 {"label":"Esc", "x":0, "y":0},
12 {"label":"F1", "x":1, "y":0},
13 {"label":"F2", "x":2, "y":0},
14 {"label":"F3", "x":3, "y":0},
15 {"label":"F4", "x":4, "y":0},
16 {"label":"F5", "x":5, "y":0},
17 {"label":"F6", "x":6, "y":0},
18 {"label":"F7", "x":7, "y":0},
19 {"label":"F8", "x":8, "y":0},
20 {"label":"F9", "x":9, "y":0},
21 {"label":"F10", "x":10, "y":0},
22 {"label":"F11", "x":11, "y":0},
23 {"label":"F12", "x":12, "y":0},
24 {"label":"Home", "x":13, "y":0},
25 {"label":"PgUp", "x":14, "y":0},
26 {"label":"Bksp", "x":15, "y":0},
27 {"label":"`", "x":0, "y":1},
28 {"label":"1", "x":1, "y":1},
29 {"label":"2", "x":2, "y":1},
30 {"label":"3", "x":3, "y":1},
31 {"label":"4", "x":4, "y":1},
32 {"label":"5", "x":5, "y":1},
33 {"label":"6", "x":6, "y":1},
34 {"label":"7", "x":7, "y":1},
35 {"label":"8", "x":8, "y":1},
36 {"label":"9", "x":9, "y":1},
37 {"label":"0", "x":10, "y":1},
38 {"label":"Bksp", "x":11, "y":1},
39 {"label":"Delete", "x":12, "y":1},
40 {"label":"End", "x":13, "y":1},
41 {"label":"PgDn", "x":14, "y":1},
42 {"label":"", "x":15, "y":1},
43 {"label":"Tab", "x":0, "y":2},
44 {"label":"q", "x":1, "y":2},
45 {"label":"w", "x":2, "y":2},
46 {"label":"e", "x":3, "y":2},
47 {"label":"r", "x":4, "y":2},
48 {"label":"t", "x":5, "y":2},
49 {"label":"y", "x":6, "y":2},
50 {"label":"u", "x":7, "y":2},
51 {"label":"i", "x":8, "y":2},
52 {"label":"o", "x":9, "y":2},
53 {"label":"p", "x":10, "y":2},
54 {"label":"\\", "x":11, "y":2},
55 {"label":"7", "x":12, "y":2},
56 {"label":"8", "x":13, "y":2},
57 {"label":"9", "x":14, "y":2},
58 {"label":"*", "x":15, "y":2},
59 {"label":"Caps Lock", "x":0, "y":3},
60 {"label":"a", "x":1, "y":3},
61 {"label":"s", "x":2, "y":3},
62 {"label":"d", "x":3, "y":3},
63 {"label":"f", "x":4, "y":3},
64 {"label":"g", "x":5, "y":3},
65 {"label":"h", "x":6, "y":3},
66 {"label":"j", "x":7, "y":3},
67 {"label":"k", "x":8, "y":3},
68 {"label":"l", "x":9, "y":3},
69 {"label":";", "x":10, "y":3},
70 {"label":"'", "x":11, "y":3},
71 {"label":"4", "x":12, "y":3},
72 {"label":"5", "x":13, "y":3},
73 {"label":"6", "x":14, "y":3},
74 {"label":"-", "x":15, "y":3},
75 {"label":"Shift", "x":0, "y":4},
76 {"label":"z", "x":1, "y":4},
77 {"label":"x", "x":2, "y":4},
78 {"label":"c", "x":3, "y":4},
79 {"label":"v", "x":4, "y":4},
80 {"label":"b", "x":5, "y":4},
81 {"label":"n", "x":6, "y":4},
82 {"label":"m", "x":7, "y":4},
83 {"label":",", "x":8, "y":4},
84 {"label":".", "x":9, "y":4},
85 {"label":"/", "x":10, "y":4},
86 {"label":"Enter", "x":11, "y":4},
87 {"label":"1", "x":12, "y":4},
88 {"label":"2", "x":13, "y":4},
89 {"label":"3", "x":14, "y":4},
90 {"label":"+", "x":15, "y":4},
91 {"label":"RGB", "x":0, "y":5},
92 {"label":"Ctrl", "x":1, "y":5},
93 {"label":"Win", "x":2, "y":5},
94 {"label":"Alt", "x":3, "y":5},
95 {"label":"Lower", "x":4, "y":5},
96 {"label":"Space", "x":5, "y":5},
97 {"label":"Space", "x":6, "y":5},
98 {"label":"Raise", "x":7, "y":5},
99 {"label":"\u2190", "x":8, "y":5},
100 {"label":"\u2193", "x":9, "y":5},
101 {"label":"\u2191", "x":10, "y":5},
102 {"label":"\u2192", "x":11, "y":5},
103 {"label":"0", "x":12, "y":5},
104 {"label":"00", "x":13, "y":5},
105 {"label":".", "x":14, "y":5},
106 {"label":"Enter", "x":15, "y":5}]
107 }
108 }
109} \ No newline at end of file
diff --git a/keyboards/fleuron/keymaps/default/config.h b/keyboards/fleuron/keymaps/default/config.h
new file mode 100644
index 000000000..1ce0a168f
--- /dev/null
+++ b/keyboards/fleuron/keymaps/default/config.h
@@ -0,0 +1,18 @@
1/* Copyright 2018 James Underwood
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
17#pragma once
18// Place overrides here \ No newline at end of file
diff --git a/keyboards/fleuron/keymaps/default/keymap.c b/keyboards/fleuron/keymaps/default/keymap.c
new file mode 100644
index 000000000..331401366
--- /dev/null
+++ b/keyboards/fleuron/keymaps/default/keymap.c
@@ -0,0 +1,168 @@
1/* Copyright 2018 James Underwood
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 custom_layers {
19 _QWERTY,
20 _LOWER,
21 _RAISE
22};
23
24enum custom_keycodes {
25 QWERTY = SAFE_RANGE,
26 DZ,
27 LOWER,
28 RAISE
29};
30
31/*
32#define _QWERTY 0
33#define _LOWER 1
34#define _RAISE 2
35*/
36
37#define _______ KC_TRNS
38#define XXXXXXX KC_NO
39
40const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
41[_QWERTY] = LAYOUT_ortho_6x16(
42 /* Qwerty
43 * ,---------------------------------------------------------------------------------------------------------------.
44 * | Esc | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | Home | PgUp | Bksp |
45 * |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------|
46 * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp | Del | End | PgDn | / |
47 * |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------|
48 * | Tab | Q | W | E | R | T | Y | U | I | O | P | \ | 7 | 8 | 9 | * |
49 * |------+------+------+------+------+-------------+------+------+------+------+------+------+------+------+------|
50 * | Caps | A | S | D | F | G | H | J | K | L | ; | " | 4 | 5 | 6 | - |
51 * |------+------+------+------+------+------|------+------+------+------+------+------+------+------+------+------|
52 * | Shift| Z | X | C | V | B | N | M | , | . | / |Enter | 1 | 2 | 3 | + |
53 * |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------|
54 * | RGB | Ctrl | Alt | GUI |Lower |Shift |Space |Raise | Left | Down | Up |Right | 0 | 00 | . |Enter |
55 * `---------------------------------------------------------------------------------------------------------------'
56 */
57 KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_HOME, KC_PGUP, KC_BSPC, \
58 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, KC_DEL, KC_END, KC_PGDN, KC_PSLS, \
59 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS, KC_P7, KC_P8, KC_P9, KC_PAST, \
60 KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_P4, KC_P5, KC_P6, KC_PMNS, \
61 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_P1, KC_P2, KC_P3, KC_PPLS, \
62 RGB_MOD, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_P0, DZ, KC_PDOT, KC_PENT \
63),
64
65[_LOWER] = LAYOUT_ortho_6x16(
66 /* Lower
67 * ,---------------------------------------------------------------------------------------------------------------.
68 * |RESET | | | | | | | | | | | | | | | |
69 * |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------|
70 * | | | | | | | | | | | | | | | | |
71 * |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------|
72 * | | | | | | | | | | | | | | | | |
73 * |------+------+------+------+------+-------------+------+------+------+------+------+------+------+------+------|
74 * | | | | | | | | _ | + | | | | | | | |
75 * |------+------+------+------+------+------|------+------+------+------+------+------+------+------+------+------|
76 * | | | | | | | | { | } | | | | | | | |
77 * |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------|
78 * |RGBtog| | | | | | | | Home | PgUp | PgDn | End | | | | |
79 * `---------------------------------------------------------------------------------------------------------------'
80 */
81 RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
82 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
83 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
84 _______, _______, _______, _______, _______, _______, _______, KC_UNDS, KC_PLUS, _______, _______, _______, _______, _______, _______, _______, \
85 _______, _______, _______, _______, _______, _______, _______, KC_LCBR, KC_RCBR, _______, _______, _______, _______, _______, _______, _______, \
86 RGB_TOG, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END, _______, _______, _______, _______ \
87),
88
89[_RAISE] = LAYOUT_ortho_6x16(
90 /* Raise
91 * ,---------------------------------------------------------------------------------------------------------------.
92 * | | | | | | | | | | | | | | | | |
93 * |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------|
94 * | | | | | | | | | | | | | | | | |
95 * |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------|
96 * | | | | | | | | | | | | | | | | |
97 * |------+------+------+------+------+-------------+------+------+------+------+------+------+------+------+------|
98 * | | | | | | | | - | = | | | | | | | |
99 * |------+------+------+------+------+------|------+------+------+------+------+------+------+------+------+------|
100 * | | | | | | | | [ | ] | | | | | | | |
101 * |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------|
102 * | | | | | | | | | Prev | Vol- | Vol+ | Next | | | | |
103 * `---------------------------------------------------------------------------------------------------------------'
104 */
105 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
106 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
107 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
108 _______, _______, _______, _______, _______, _______, _______, KC_MINS, KC_EQL, _______, _______, _______, _______, _______, _______, _______, \
109 _______, _______, _______, _______, _______, _______, _______, KC_LBRC, KC_RBRC, _______, _______, _______, _______, _______, _______, _______, \
110 _______, _______, _______, _______, _______, _______, _______, _______, KC_MRWD, KC_VOLD, KC_VOLU, KC_MFFD, _______, _______, _______, _______ \
111)
112};
113
114/*
115bool process_record_user(uint16_t keycode, keyrecord_t *record) {
116 if (record->event.pressed) {
117 switch(keycode) {
118 case DZ:
119 SEND_STRING("00"); // Double 0 macro for numpad
120 return false;
121 break;
122 case LOWER:
123
124 }
125 }
126 return true;
127};
128*/
129
130bool process_record_user(uint16_t keycode, keyrecord_t *record) {
131 switch (keycode) {
132 case LOWER:
133 if (record->event.pressed) {
134 layer_on(_LOWER);
135 } else {
136 layer_off(_LOWER);
137 }
138 return false;
139 break;
140 case RAISE:
141 if (record->event.pressed) {
142 layer_on(_RAISE);
143 } else {
144 layer_off(_RAISE);
145 }
146 return false;
147 break;
148 case DZ:
149 if (record->event.pressed) {
150 SEND_STRING("00"); // Double 0 macro for numpad
151 return false;
152 break;
153 }
154 }
155 return true;
156}
157
158void matrix_init_user(void) {
159
160}
161
162void matrix_scan_user(void) {
163
164}
165
166void led_set_user(uint8_t usb_led) {
167
168}
diff --git a/keyboards/fleuron/keymaps/default/readme.md b/keyboards/fleuron/keymaps/default/readme.md
new file mode 100644
index 000000000..ad065932b
--- /dev/null
+++ b/keyboards/fleuron/keymaps/default/readme.md
@@ -0,0 +1 @@
# The default keymap for fleuron \ No newline at end of file
diff --git a/keyboards/fleuron/keymaps/dollartacos/config.h b/keyboards/fleuron/keymaps/dollartacos/config.h
new file mode 100644
index 000000000..1ce0a168f
--- /dev/null
+++ b/keyboards/fleuron/keymaps/dollartacos/config.h
@@ -0,0 +1,18 @@
1/* Copyright 2018 James Underwood
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
17#pragma once
18// Place overrides here \ No newline at end of file
diff --git a/keyboards/fleuron/keymaps/dollartacos/keymap.c b/keyboards/fleuron/keymaps/dollartacos/keymap.c
new file mode 100644
index 000000000..e38dd8bd5
--- /dev/null
+++ b/keyboards/fleuron/keymaps/dollartacos/keymap.c
@@ -0,0 +1,162 @@
1/* Copyright 2018 James Underwood
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 custom_layers {
19 _QWERTY,
20 _LOWER,
21 _RAISE
22};
23
24enum custom_keycodes {
25 QWERTY = SAFE_RANGE,
26 DZ,
27 LOWER,
28 RAISE
29};
30
31/*
32#define _QWERTY 0
33#define _LOWER 1
34#define _RAISE 2
35*/
36
37#define _______ KC_TRNS
38#define XXXXXXX KC_NO
39
40const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
41[_QWERTY] = LAYOUT_fleuron_grid(
42 /* Qwerty
43 * ,---------------------------------------------------------------------------------------------------------------.
44 * | Esc | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | Mute | Play | Next |
45 * |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------|
46 * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp | Del | / | * | / |
47 * |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------|
48 * | Tab | Q | W | E | R | T | Y | U | I | O | P | \ | 7 | 8 | 9 | * |
49 * |------+------+------+------+------+-------------+------+------+------+------+------+------+------+------+------|
50 * | Caps | A | S | D | F | G | H | J | K | L | ; | " | 4 | 5 | 6 | - |
51 * |------+------+------+------+------+------|------+------+------+------+------+------+------+------+------+------|
52 * | Shift| Z | X | C | V | B | N | M | , | . | / |Enter | 1 | 2 | 3 | + |
53 * |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------|
54 * | RGB | Ctrl | Alt |Lower | Cmd |Enter | Bksp |Space | Raise| Left | Down | Up |Right | 0 | . |Enter |
55 * `---------------------------------------------------------------------------------------------------------------'
56 */
57 KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC__MUTE, KC_MPLY, KC_MFFD, \
58 KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, KC_DEL, KC_PSLS, KC_PAST, KC_PSLS, \
59 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS, KC_P7, KC_P8, KC_P9, KC_PAST, \
60 KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_P4, KC_P5, KC_P6, KC_PMNS, \
61 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_P1, KC_P2, KC_P3, KC_PPLS, \
62 RGB_MOD, KC_LCTL, KC_LALT, LOWER, KC_LGUI, KC_ENT, KC_BSPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_P0, KC_PDOT, KC_PENT \
63),
64
65[_LOWER] = LAYOUT_fleuron_grid(
66 /* Lower
67 * ,---------------------------------------------------------------------------------------------------------------.
68 * |RESET | | | | | | | | | | | | | | | |
69 * |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------|
70 * | | | | | | | | | | | | | | | | |
71 * |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------|
72 * | | | | | | | | | | | | | | | | |
73 * |------+------+------+------+------+-------------+------+------+------+------+------+------+------+------+------|
74 * | | | | | | | | _ | + | | | | | | | |
75 * |------+------+------+------+------+------|------+------+------+------+------+------+------+------+------+------|
76 * | | | | | | | | { | } | | | | | | | |
77 * |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------|
78 * |RGBtog| | | | | | | | | Home | PgUp | PgDn | End | | | |
79 * `---------------------------------------------------------------------------------------------------------------'
80 */
81 RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
82 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
83 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
84 _______, _______, _______, _______, _______, _______, _______, KC_UNDS, KC_PLUS, _______, _______, _______, _______, _______, _______, _______, \
85 _______, _______, _______, _______, _______, _______, _______, KC_LCBR, KC_RCBR, _______, _______, _______, _______, _______, _______, _______, \
86 RGB_TOG, _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_PGDN, KC_PGUP, KC_END, _______, _______, _______ \
87),
88
89[_RAISE] = LAYOUT_fleuron_grid(
90 /* Raise
91 * ,---------------------------------------------------------------------------------------------------------------.
92 * | | | | | | | | | | | | | | | | |
93 * |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------|
94 * | | | | | | | | | | | | | | | | |
95 * |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------|
96 * | | | | | | | | | | | | | | | | |
97 * |------+------+------+------+------+-------------+------+------+------+------+------+------+------+------+------|
98 * | | | | | | | | - | = | | | | | | | |
99 * |------+------+------+------+------+------|------+------+------+------+------+------+------+------+------+------|
100 * | | | | | | | | [ | ] | | | | | | | |
101 * |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------|
102 * | | | | | | | | | | Prev | Vol- | Vol+ | Next | | | |
103 * `---------------------------------------------------------------------------------------------------------------'
104 */
105 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
106 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
107 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
108 _______, _______, _______, _______, _______, _______, _______, KC_MINS, KC_EQL, _______, _______, _______, _______, _______, _______, _______, \
109 _______, _______, _______, _______, _______, _______, _______, KC_LBRC, KC_RBRC, _______, _______, _______, _______, _______, _______, _______, \
110 _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_MRWD, KC_VOLD, KC_VOLU, KC_MFFD, _______, _______, _______ \
111)
112};
113
114/*
115bool process_record_user(uint16_t keycode, keyrecord_t *record) {
116 if (record->event.pressed) {
117 switch(keycode) {
118 case DZ:
119 SEND_STRING("00"); // Double 0 macro for numpad
120 return false;
121 break;
122 case LOWER:
123
124 }
125 }
126 return true;
127};
128*/
129
130bool process_record_user(uint16_t keycode, keyrecord_t *record) {
131 switch (keycode) {
132 case LOWER:
133 if (record->event.pressed) {
134 layer_on(_LOWER);
135 } else {
136 layer_off(_LOWER);
137 }
138 return false;
139 break;
140 case RAISE:
141 if (record->event.pressed) {
142 layer_on(_RAISE);
143 } else {
144 layer_off(_RAISE);
145 }
146 return false;
147 break;
148 }
149 return true;
150}
151
152void matrix_init_user(void) {
153
154}
155
156void matrix_scan_user(void) {
157
158}
159
160void led_set_user(uint8_t usb_led) {
161
162}
diff --git a/keyboards/fleuron/keymaps/dollartacos/readme.md b/keyboards/fleuron/keymaps/dollartacos/readme.md
new file mode 100644
index 000000000..d370b574c
--- /dev/null
+++ b/keyboards/fleuron/keymaps/dollartacos/readme.md
@@ -0,0 +1 @@
# Dollartaco's keymap for fleuron \ No newline at end of file
diff --git a/keyboards/fleuron/readme.md b/keyboards/fleuron/readme.md
new file mode 100644
index 000000000..077753a28
--- /dev/null
+++ b/keyboards/fleuron/readme.md
@@ -0,0 +1,16 @@
1# Fleuron
2
3![Fleuron](https://i.imgur.com/ejXBFRP.jpg "the fleuron keyboard")
4
5The Fleuron keyboard is a 6x16 ortho keyboard supporting right, left, or center numpad placement and rgb backlighting.
6
7Keyboard Maintainer: [James Underwood](https://github.com/ju0)
8Hardware Supported: The Fleuron pcb, ATmega32u4 based controller
9Hardware Availability: limited production run, contact maintainer for details
10
11Make example for this keyboard (after setting up your build environment):
12
13 make fleuron:default to build firmware
14 make fleuron:default:dfu to make and flash with dfu
15
16See [build environment setup](https://docs.qmk.fm/build_environment_setup.html) then the [make instructions](https://docs.qmk.fm/make_instructions.html) for more information. \ No newline at end of file
diff --git a/keyboards/fleuron/rules.mk b/keyboards/fleuron/rules.mk
new file mode 100644
index 000000000..c295dc55d
--- /dev/null
+++ b/keyboards/fleuron/rules.mk
@@ -0,0 +1,71 @@
1# MCU name
2#MCU = at90usb1286
3MCU = atmega32u4
4
5# Processor frequency.
6# This will define a symbol, F_CPU, in all source code files equal to the
7# processor frequency in Hz. You can then use this symbol in your source code to
8# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
9# automatically to create a 32-bit value in your source code.
10#
11# This will be an integer division of F_USB below, as it is sourced by
12# F_USB after it has run through any CPU prescalers. Note that this value
13# does not *change* the processor frequency - it should merely be updated to
14# reflect the processor speed set externally so that the code can use accurate
15# software delays.
16F_CPU = 16000000
17
18
19#
20# LUFA specific
21#
22# Target architecture (see library "Board Types" documentation).
23ARCH = AVR8
24
25# Input clock frequency.
26# This will define a symbol, F_USB, in all source code files equal to the
27# input clock frequency (before any prescaling is performed) in Hz. This value may
28# differ from F_CPU if prescaling is used on the latter, and is required as the
29# raw input clock is fed directly to the PLL sections of the AVR for high speed
30# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
31# at the end, this will be done automatically to create a 32-bit value in your
32# source code.
33#
34# If no clock division is performed on the input clock inside the AVR (via the
35# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
36F_USB = $(F_CPU)
37
38# Interrupt driven control endpoint task(+60)
39OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
40
41
42# Boot Section Size in *bytes*
43# Teensy halfKay 512
44# Teensy++ halfKay 1024
45# Atmel DFU loader 4096
46# LUFA bootloader 4096
47# USBaspLoader 2048
48OPT_DEFS += -DBOOTLOADER_SIZE=4096
49
50
51# Build Options
52# change yes to no to disable
53#
54BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
55MOUSEKEY_ENABLE = no # Mouse keys(+4700)
56EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
57CONSOLE_ENABLE = no # Console for debug(+400)
58COMMAND_ENABLE = no # Commands for debug and configuration
59# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
60SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
61# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
62NKRO_ENABLE = no # USB Nkey Rollover
63BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default
64MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config)
65UNICODE_ENABLE = no # Unicode
66BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
67AUDIO_ENABLE = no # Audio output on port C6
68FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
69
70RGBLIGHT_ENABLE = yes
71LAYOUTS = ortho_6x16 \ No newline at end of file