Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Keyboard] Add Flatbread60, Vaneela, and VaneelaEx by nckiibs #9817

Merged
merged 34 commits into from
Aug 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
d7e7549
creOnic added
noclew Jul 24, 2020
c819edc
made requested changed by a moderator
noclew Jul 24, 2020
4cd44b2
device name changed
noclew Jul 25, 2020
59e754a
fixed flatbread60 files
noclew Jul 30, 2020
a7db6de
add vaneela and vaneelaEX support
noclew Jul 30, 2020
d675450
Update keyboards/nckiibs/vaneelaex/rules.mk
noclew Jul 31, 2020
3a76ae0
vaneela rgb disabled
noclew Aug 1, 2020
f30826c
include error fxied
noclew Aug 2, 2020
9fd4a18
vaneelaex Via keymap fixed
noclew Aug 3, 2020
812ba7f
vaneelaex keymap fixed
noclew Aug 3, 2020
d2f75b9
all fixed except clang part
noclew Aug 4, 2020
dad3f1f
vaneelaex config.h error fixed, clang fixed
noclew Aug 4, 2020
09b125d
Update keyboards/nckiibs/flatbread60/keymaps/default/keymap.c
noclew Aug 4, 2020
dcebd53
Update keyboards/nckiibs/flatbread60/keymaps/default/keymap.c
noclew Aug 4, 2020
cd475ce
Update keyboards/nckiibs/flatbread60/keymaps/default/keymap.c
noclew Aug 4, 2020
4999e48
Update keyboards/nckiibs/flatbread60/keymaps/default/keymap.c
noclew Aug 4, 2020
c124103
Update keyboards/nckiibs/flatbread60/keymaps/default/keymap.c
noclew Aug 4, 2020
e759492
Update keyboards/nckiibs/flatbread60/keymaps/default/keymap.c
noclew Aug 4, 2020
875f5e2
Update keyboards/nckiibs/flatbread60/keymaps/default/keymap.c
noclew Aug 4, 2020
d19d740
Update keyboards/nckiibs/flatbread60/keymaps/default/keymap.c
noclew Aug 4, 2020
09fd9b2
Update keyboards/nckiibs/flatbread60/keymaps/default/keymap.c
noclew Aug 4, 2020
c0bf133
Update keyboards/nckiibs/flatbread60/keymaps/default/keymap.c
noclew Aug 4, 2020
34004d1
Update keyboards/nckiibs/flatbread60/rules.mk
noclew Aug 4, 2020
cfb557a
line endings were fixed as requested
noclew Aug 4, 2020
9a740ea
Apply suggestions from code review
noclew Aug 5, 2020
6672250
requests applied and rebased
noclew Aug 5, 2020
ac92cdb
pics changed
noclew Aug 5, 2020
b0864e0
flatbread via fixed
noclew Aug 6, 2020
93e0f70
Apply suggestions from code review
noclew Aug 6, 2020
293e0cb
Apply suggestions from code review
noclew Aug 6, 2020
f825a13
Apply suggestions from code review except VIA keymaps
noclew Aug 6, 2020
e55c29e
Update keyboards/nckiibs/flatbread60/keymaps/default/keymap.c
noclew Aug 6, 2020
8308f35
flatbread via keymap changed
noclew Aug 8, 2020
34912b6
Apply suggestions from code review
noclew Aug 9, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
175 changes: 175 additions & 0 deletions keyboards/nckiibs/flatbread60/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
/*
Copyright 2020 noclew

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 0x9906
#define PRODUCT_ID 0x0000
#define DEVICE_VER 0x0001
#define MANUFACTURER nckiibs
#define PRODUCT Flatbread60

/* key matrix size */
#define MATRIX_ROWS 5
#define MATRIX_COLS 12

/*
* 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 { F6, B1, B3, B2, B6 }
#define MATRIX_COL_PINS { F4, F5, B5, B4, E6, D7, C6, D4, D0, D1, D2, D3 }
#define UNUSED_PINS

/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION COL2ROW

// #define BACKLIGHT_PIN B7
// #define BACKLIGHT_BREATHING
// #define BACKLIGHT_LEVELS 3

#define RGB_DI_PIN F7
#ifdef RGB_DI_PIN
#define RGBLED_NUM 19
#define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8
#define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
#define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
/*== all animations enable ==*/
#define RGBLIGHT_ANIMATIONS

#endif

/* 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

/* 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

/*
* Force NKRO
*
* Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
* state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
* makefile for this to work.)
*
* If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
* until the next keyboard reset.
*
* NKRO may prevent your keystrokes from being detected in the BIOS, but it is
* fully operational during normal computer usage.
*
* For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
* or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
* bootmagic, NKRO mode will always be enabled until it is toggled again during a
* power-up.
*
*/
//#define FORCE_NKRO

/*
* Magic Key Options
*
* Magic keys are hotkey commands that allow control over firmware functions of
* the keyboard. They are best used in combination with the HID Listen program,
* found here: https://www.pjrc.com/teensy/hid_listen.html
*
* The options below allow the magic key functionality to be changed. This is
* useful if your keyboard/keypad is missing keys and you want magic key support.
*
*/

/* key combination for magic key command */
/* defined by default; to change, uncomment and set to the combination you want */
// #define IS_COMMAND() (get_mods() == MOD_MASK_SHIFT)

/* control how magic key switches layers */
//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true
//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true
//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false

/* override magic key keymap */
//#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS
//#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS
//#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM
//#define MAGIC_KEY_HELP H
//#define MAGIC_KEY_HELP_ALT SLASH
//#define MAGIC_KEY_DEBUG D
//#define MAGIC_KEY_DEBUG_MATRIX X
//#define MAGIC_KEY_DEBUG_KBD K
//#define MAGIC_KEY_DEBUG_MOUSE M
//#define MAGIC_KEY_VERSION V
//#define MAGIC_KEY_STATUS S
//#define MAGIC_KEY_CONSOLE C
//#define MAGIC_KEY_LAYER0 0
//#define MAGIC_KEY_LAYER0_ALT GRAVE
//#define MAGIC_KEY_LAYER1 1
//#define MAGIC_KEY_LAYER2 2
//#define MAGIC_KEY_LAYER3 3
//#define MAGIC_KEY_LAYER4 4
//#define MAGIC_KEY_LAYER5 5
//#define MAGIC_KEY_LAYER6 6
//#define MAGIC_KEY_LAYER7 7
//#define MAGIC_KEY_LAYER8 8
//#define MAGIC_KEY_LAYER9 9
//#define MAGIC_KEY_BOOTLOADER B
//#define MAGIC_KEY_BOOTLOADER_ALT ESC
//#define MAGIC_KEY_LOCK CAPS
//#define MAGIC_KEY_EEPROM E
//#define MAGIC_KEY_EEPROM_CLEAR BSPACE
//#define MAGIC_KEY_NKRO N
//#define MAGIC_KEY_SLEEP_LED Z

noclew marked this conversation as resolved.
Show resolved Hide resolved
/*
* Feature disable options
* These options are also useful to firmware size reduction.
*/

/* disable debug print */
//#define NO_DEBUG

/* disable print */
//#define NO_PRINT

/* disable action features */
//#define NO_ACTION_LAYER
//#define NO_ACTION_TAPPING
//#define NO_ACTION_ONESHOT

/* disable these deprecated features by default */
#define NO_ACTION_MACRO
#define NO_ACTION_FUNCTION
18 changes: 18 additions & 0 deletions keyboards/nckiibs/flatbread60/flatbread60.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/* Copyright 2020 noclew
*
* 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/>.
*/

#include "flatbread60.h"

42 changes: 42 additions & 0 deletions keyboards/nckiibs/flatbread60/flatbread60.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/* Copyright 2020 noclew
*
* 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 "quantum.h"

/* This is a shortcut to help you visually see your layout.
*
* The first section contains all of the arguments representing the physical
* layout of the board and position of the keys.
*
* The second converts the arguments into a two-dimensional array which
* represents the switch matrix.
*/
#define LAYOUT_ortho_5x12( \
k01, k02, k03, k04, k05, k06, k07, k08, k09, k10, k11, k12, \
k13, k14, k15, k16, k17, k18, k19, k20, k21, k22, k23, k24, \
k25, k26, k27, k28, k29, k30, k31, k32, k33, k34, k35, k36, \
k37, k38, k39, k40, k41, k42, k43, k44, k45, k46, k47, k48, \
k49, k50, k51, k52, k53, k54, k55, k56, k57, k58, k59, k60 \
) \
{ \
{ k01, k02, k03, k04, k05, k06, k07, k08, k09, k10, k11, k12 }, \
{ k13, k14, k15, k16, k17, k18, k19, k20, k21, k22, k23, k24 }, \
{ k25, k26, k27, k28, k29, k30, k31, k32, k33, k34, k35, k36 }, \
{ k37, k38, k39, k40, k41, k42, k43, k44, k45, k46, k47, k48 }, \
{ k49, k50, k51, k52, k53, k54, k55, k56, k57, k58, k59, k60 } \
}
Loading