diff options
| author | AlisGraveNil <63020540+AlisGraveNil@users.noreply.github.com> | 2021-04-20 10:59:05 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-20 09:59:05 -0700 |
| commit | 4ff16fe73e0850beeca446d53902527c2cbabe8a (patch) | |
| tree | b4b6d35727554dc1b71894e15287f3f35fa73022 | |
| parent | 21c147c11b23aad7a9335fee309531eac22ecf6b (diff) | |
| download | qmk_firmware-4ff16fe73e0850beeca446d53902527c2cbabe8a.tar.gz qmk_firmware-4ff16fe73e0850beeca446d53902527c2cbabe8a.zip | |
[Keyboard] doodle macropad - 03/14 (#12243)
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
| -rw-r--r-- | keyboards/clawsome/doodle/config.h | 45 | ||||
| -rw-r--r-- | keyboards/clawsome/doodle/doodle.c | 17 | ||||
| -rw-r--r-- | keyboards/clawsome/doodle/doodle.h | 27 | ||||
| -rw-r--r-- | keyboards/clawsome/doodle/info.json | 20 | ||||
| -rw-r--r-- | keyboards/clawsome/doodle/keymaps/default/keymap.c | 25 | ||||
| -rw-r--r-- | keyboards/clawsome/doodle/rules.mk | 22 |
6 files changed, 156 insertions, 0 deletions
diff --git a/keyboards/clawsome/doodle/config.h b/keyboards/clawsome/doodle/config.h new file mode 100644 index 000000000..df33e6d84 --- /dev/null +++ b/keyboards/clawsome/doodle/config.h | |||
| @@ -0,0 +1,45 @@ | |||
| 1 | /* Copyright 2021 AAClawson (AlisGraveNil) | ||
| 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 | |||
| 19 | #include "config_common.h" | ||
| 20 | |||
| 21 | /* USB Device descriptor parameter */ | ||
| 22 | #define VENDOR_ID 0x7767 | ||
| 23 | #define PRODUCT_ID 0x0000 | ||
| 24 | #define DEVICE_VER 0x0001 | ||
| 25 | #define MANUFACTURER AlisGraveNil | ||
| 26 | #define PRODUCT doodle | ||
| 27 | |||
| 28 | /* key matrix size */ | ||
| 29 | #define MATRIX_ROWS 2 | ||
| 30 | #define MATRIX_COLS 3 | ||
| 31 | |||
| 32 | /* | ||
| 33 | * Keyboard Matrix Assignments | ||
| 34 | * | ||
| 35 | * Change this to how you wired your keyboard | ||
| 36 | * COLS: AVR pins used for columns, left to right | ||
| 37 | * ROWS: AVR pins used for rows, top to bottom | ||
| 38 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 39 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 40 | * | ||
| 41 | */ | ||
| 42 | #define MATRIX_ROW_PINS { D4, C6 } | ||
| 43 | #define MATRIX_COL_PINS { D7, F4, E6 } | ||
| 44 | |||
| 45 | #define DIODE_DIRECTION COL2ROW | ||
diff --git a/keyboards/clawsome/doodle/doodle.c b/keyboards/clawsome/doodle/doodle.c new file mode 100644 index 000000000..4f1b77351 --- /dev/null +++ b/keyboards/clawsome/doodle/doodle.c | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | /* Copyright 2021 AAClawson (AlisGraveNil) | ||
| 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 | #include "doodle.h" \ No newline at end of file | ||
diff --git a/keyboards/clawsome/doodle/doodle.h b/keyboards/clawsome/doodle/doodle.h new file mode 100644 index 000000000..131d50ad2 --- /dev/null +++ b/keyboards/clawsome/doodle/doodle.h | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | /* Copyright 2021 AAClawson (AlisGraveNil) | ||
| 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 | |||
| 19 | #include "quantum.h" | ||
| 20 | |||
| 21 | #define LAYOUT( \ | ||
| 22 | K00, K01, K02, \ | ||
| 23 | K10, K11, K12 \ | ||
| 24 | ) { \ | ||
| 25 | { K00, K01, K02 }, \ | ||
| 26 | { K10, K11, K12 } \ | ||
| 27 | } | ||
diff --git a/keyboards/clawsome/doodle/info.json b/keyboards/clawsome/doodle/info.json new file mode 100644 index 000000000..aa1b657d7 --- /dev/null +++ b/keyboards/clawsome/doodle/info.json | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "doodle", | ||
| 3 | "url": "www.clawboards.xyz", | ||
| 4 | "maintainer": "AAClawson (AlisGraveNil)", | ||
| 5 | "width": 3, | ||
| 6 | "height": 2, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 9 | "layout": [ | ||
| 10 | {"label":"K00 (D4,D7)", "x":0, "y":0}, | ||
| 11 | {"label":"K01 (D4,F4)", "x":1, "y":0}, | ||
| 12 | {"label":"K02 (D4,E6)", "x":2, "y":0}, | ||
| 13 | {"label":"K10 (C6,D7)", "x":0, "y":1}, | ||
| 14 | {"label":"K11 (C6,F4)", "x":1, "y":1}, | ||
| 15 | {"label":"K12 (C6,E6)", "x":2, "y":1} | ||
| 16 | ] | ||
| 17 | } | ||
| 18 | } | ||
| 19 | } | ||
| 20 | |||
diff --git a/keyboards/clawsome/doodle/keymaps/default/keymap.c b/keyboards/clawsome/doodle/keymaps/default/keymap.c new file mode 100644 index 000000000..e3bcc955b --- /dev/null +++ b/keyboards/clawsome/doodle/keymaps/default/keymap.c | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | /* Copyright 2021 AAClawson (AlisGraveNil) | ||
| 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 | #include QMK_KEYBOARD_H | ||
| 18 | |||
| 19 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 20 | [0] = LAYOUT( | ||
| 21 | KC_1, KC_2, KC_3, | ||
| 22 | KC_4, KC_5, KC_6 | ||
| 23 | ), | ||
| 24 | |||
| 25 | }; | ||
diff --git a/keyboards/clawsome/doodle/rules.mk b/keyboards/clawsome/doodle/rules.mk new file mode 100644 index 000000000..64d67049f --- /dev/null +++ b/keyboards/clawsome/doodle/rules.mk | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = caterina | ||
| 6 | |||
| 7 | # Build Options | ||
| 8 | # change yes to no to disable | ||
| 9 | # | ||
| 10 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
| 11 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
| 12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 13 | CONSOLE_ENABLE = yes # Console for debug | ||
| 14 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
| 15 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 16 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 17 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 18 | NKRO_ENABLE = no # USB Nkey Rollover | ||
| 19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 20 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
| 22 | AUDIO_ENABLE = no # Audio output \ No newline at end of file | ||
