diff options
| author | melonbred <61572569+melonbred@users.noreply.github.com> | 2020-12-16 21:27:47 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-16 21:27:47 -0800 |
| commit | 58107ebedf1a2d9a1fb9c0cafc9f994df435d63c (patch) | |
| tree | 6fb9a63d7d1886c0a922015896299739d1cb1463 /keyboards/program_yoink/config.h | |
| parent | d82ab56a14fa9986a7651e6be78a73d10b5629df (diff) | |
| download | qmk_firmware-58107ebedf1a2d9a1fb9c0cafc9f994df435d63c.tar.gz qmk_firmware-58107ebedf1a2d9a1fb9c0cafc9f994df435d63c.zip | |
[Keyboard] Add program_yoink (#10963)
* Add new keyboard: program_yoink
* Updated rules.mk
* Updated split_space keymap
Fixed split_space keymap and now builds with no errors.
* Update keyboards/program_yoink/config.h
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/program_yoink/config.h
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/program_yoink/rules.mk
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/program_yoink/program_yoink.h
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/program_yoink/program_yoink.h
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/program_yoink/keymaps/default/keymap.c
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/program_yoink/keymaps/default/keymap.c
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/program_yoink/keymaps/split_bar/keymap.c
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/program_yoink/keymaps/split_bar/keymap.c
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/program_yoink/keymaps/split_bar/keymap.c
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update keyboards/program_yoink/keymaps/default/keymap.c
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Update readme.md
* Apply suggestions from code review
Co-authored-by: Drashna Jaelre <drashna@live.com>
* Apply suggestions from code review
Co-authored-by: Joel Challis <git@zvecr.com>
* Update keyboards/program_yoink/readme.md
per code review
* Apply suggestions from code review
* Update keyboards/program_yoink/rules.mk
Co-authored-by: Ryan <fauxpark@gmail.com>
* Update keyboards/program_yoink/config.h
Co-authored-by: Joel Challis <git@zvecr.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: Joel Challis <git@zvecr.com>
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/program_yoink/config.h')
| -rw-r--r-- | keyboards/program_yoink/config.h | 102 |
1 files changed, 102 insertions, 0 deletions
diff --git a/keyboards/program_yoink/config.h b/keyboards/program_yoink/config.h new file mode 100644 index 000000000..d1fc28ef4 --- /dev/null +++ b/keyboards/program_yoink/config.h | |||
| @@ -0,0 +1,102 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 melonbred | ||
| 3 | |||
| 4 | This program is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU General Public License as published by | ||
| 6 | the Free Software Foundation, either version 2 of the License, or | ||
| 7 | (at your option) any later version. | ||
| 8 | |||
| 9 | This program is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU General Public License | ||
| 15 | along 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 0xF10B | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER melonbred | ||
| 27 | #define PRODUCT program_yoink | ||
| 28 | |||
| 29 | /* key matrix size */ | ||
| 30 | #define MATRIX_ROWS 4 | ||
| 31 | #define MATRIX_COLS 13 | ||
| 32 | |||
| 33 | /* | ||
| 34 | * Keyboard Matrix Assignments | ||
| 35 | * | ||
| 36 | * Change this to how you wired your keyboard | ||
| 37 | * COLS: AVR pins used for columns, left to right | ||
| 38 | * ROWS: AVR pins used for rows, top to bottom | ||
| 39 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 40 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 41 | * | ||
| 42 | */ | ||
| 43 | #define MATRIX_ROW_PINS { D2, D3, B1, B0 } | ||
| 44 | #define MATRIX_COL_PINS { C4, C5, C6, C7, B7, B6, B5, B4, B3, B2, D6, C2, D5 } | ||
| 45 | #define UNUSED_PINS | ||
| 46 | |||
| 47 | /* COL2ROW, ROW2COL*/ | ||
| 48 | #define DIODE_DIRECTION COL2ROW | ||
| 49 | |||
| 50 | /*Encoder Definition*/ | ||
| 51 | #define ENCODERS_PAD_A { D1 } | ||
| 52 | #define ENCODERS_PAD_B { D0 } | ||
| 53 | |||
| 54 | /*RGB*/ | ||
| 55 | #define RGB_DI_PIN D4 | ||
| 56 | #ifdef RGB_DI_PIN | ||
| 57 | #define RGBLED_NUM 5 | ||
| 58 | #define RGBLIGHT_HUE_STEP 8 | ||
| 59 | #define RGBLIGHT_SAT_STEP 8 | ||
| 60 | #define RGBLIGHT_VAL_STEP 8 | ||
| 61 | #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
| 62 | #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 63 | /*== all animations enable ==*/ | ||
| 64 | //#define RGBLIGHT_ANIMATIONS | ||
| 65 | /*== or choose animations ==*/ | ||
| 66 | //#define RGBLIGHT_EFFECT_BREATHING | ||
| 67 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 68 | #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 69 | //#define RGBLIGHT_EFFECT_SNAKE | ||
| 70 | #define RGBLIGHT_EFFECT_KNIGHT | ||
| 71 | //#define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 72 | #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 73 | //#define RGBLIGHT_EFFECT_RGB_TEST | ||
| 74 | //#define RGBLIGHT_EFFECT_ALTERNATING | ||
| 75 | /*== customize breathing effect ==*/ | ||
| 76 | /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ | ||
| 77 | //#define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 | ||
| 78 | /*==== use exp() and sin() ====*/ | ||
| 79 | //#define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 | ||
| 80 | //#define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 | ||
| 81 | #endif | ||
| 82 | |||
| 83 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 84 | #define DEBOUNCE 5 | ||
| 85 | |||
| 86 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 87 | //#define MATRIX_HAS_GHOST | ||
| 88 | |||
| 89 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 90 | #define LOCKING_SUPPORT_ENABLE | ||
| 91 | /* Locking resynchronize hack */ | ||
| 92 | #define LOCKING_RESYNC_ENABLE | ||
| 93 | |||
| 94 | |||
| 95 | /* disable action features */ | ||
| 96 | //#define NO_ACTION_LAYER | ||
| 97 | //#define NO_ACTION_TAPPING | ||
| 98 | //#define NO_ACTION_ONESHOT | ||
| 99 | |||
| 100 | /* disable these deprecated features by default */ | ||
| 101 | #define NO_ACTION_MACRO | ||
| 102 | #define NO_ACTION_FUNCTION | ||
