diff options
author | QMK Bot <hello@qmk.fm> | 2021-02-20 19:47:34 +0000 |
---|---|---|
committer | QMK Bot <hello@qmk.fm> | 2021-02-20 19:47:34 +0000 |
commit | 2e4f0876151d7016172fa51d1588def1c96102fc (patch) | |
tree | eee0cd821e989eda59f627f6d9c49ebd36a027ae | |
parent | 1a97f29f5d0da6d195983fd031014bd21a99f940 (diff) | |
parent | 9682fca47b1d36dc5b502cc3e1f569464c41669a (diff) | |
download | qmk_firmware-2e4f0876151d7016172fa51d1588def1c96102fc.tar.gz qmk_firmware-2e4f0876151d7016172fa51d1588def1c96102fc.zip |
Merge remote-tracking branch 'origin/master' into develop
21 files changed, 447 insertions, 0 deletions
diff --git a/keyboards/anavi/macropad2/config.h b/keyboards/anavi/macropad2/config.h new file mode 100644 index 000000000..f0448e4d7 --- /dev/null +++ b/keyboards/anavi/macropad2/config.h | |||
@@ -0,0 +1,69 @@ | |||
1 | /* | ||
2 | Copyright 2021 Leon Anavi <leon@anavi.org> | ||
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 0xCEEB | ||
24 | #define PRODUCT_ID 0x0002 | ||
25 | #define DEVICE_VER 0x0001 | ||
26 | #define MANUFACTURER ANAVI | ||
27 | #define PRODUCT Macro Pad 2 | ||
28 | |||
29 | /* matrix size */ | ||
30 | #define MATRIX_ROWS 1 | ||
31 | #define MATRIX_COLS 2 | ||
32 | |||
33 | /* | ||
34 | * Keyboard Matrix Assignments | ||
35 | * | ||
36 | * On this board we have direct connection: no diodes. | ||
37 | */ | ||
38 | #define DIRECT_PINS {{ B2, B0 }} | ||
39 | |||
40 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
41 | #define DEBOUNCE 5 | ||
42 | |||
43 | #define BACKLIGHT_PIN B1 | ||
44 | #define BACKLIGHT_LEVELS 2 | ||
45 | #define RGBLIGHT_SLEEP | ||
46 | |||
47 | //#define RGBLED_NUM 2 | ||
48 | //#define RGB_DI_PIN B2 | ||
49 | |||
50 | // Save as much space as we can... | ||
51 | #define LAYER_STATE_8BIT | ||
52 | #define NO_ACTION_LAYER | ||
53 | #define NO_ACTION_TAPPING | ||
54 | #define NO_ACTION_ONESHOT | ||
55 | #define NO_RESET | ||
56 | |||
57 | // usbconfig.h overrides | ||
58 | #define USB_CFG_IOPORTNAME B | ||
59 | #define USB_CFG_DMINUS_BIT 3 | ||
60 | #define USB_CFG_DPLUS_BIT 4 | ||
61 | #define USB_COUNT_SOF 0 | ||
62 | #define USB_INTR_CFG PCMSK | ||
63 | #define USB_INTR_CFG_SET (1<<USB_CFG_DPLUS_BIT) | ||
64 | #define USB_INTR_ENABLE_BIT PCIE | ||
65 | #define USB_INTR_PENDING_BIT PCIF | ||
66 | #define USB_INTR_VECTOR SIG_PIN_CHANGE | ||
67 | |||
68 | #define COMBO_COUNT 1 | ||
69 | #define COMBO_TERM 500 | ||
diff --git a/keyboards/anavi/macropad2/info.json b/keyboards/anavi/macropad2/info.json new file mode 100644 index 000000000..adce72ae3 --- /dev/null +++ b/keyboards/anavi/macropad2/info.json | |||
@@ -0,0 +1,16 @@ | |||
1 | { | ||
2 | "keyboard_name": "ANAVI Macro Pad 2", | ||
3 | "url": "https://anavi.technology/", | ||
4 | "maintainer": "leon-anavi", | ||
5 | "width": 2, | ||
6 | "height": 1, | ||
7 | "layouts": { | ||
8 | "LAYOUT": { | ||
9 | "key_count": 2, | ||
10 | "layout": [ | ||
11 | {"x":0, "y":0}, | ||
12 | {"x":1, "y":0} | ||
13 | ] | ||
14 | } | ||
15 | } | ||
16 | } | ||
diff --git a/keyboards/anavi/macropad2/keymaps/copypaste/keymap.c b/keyboards/anavi/macropad2/keymaps/copypaste/keymap.c new file mode 100644 index 000000000..cddc14188 --- /dev/null +++ b/keyboards/anavi/macropad2/keymaps/copypaste/keymap.c | |||
@@ -0,0 +1,30 @@ | |||
1 | /* Copyright 2021 Leon Anavi <leon@anavi.org> | ||
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 | C(KC_C), C(KC_V) | ||
22 | ) | ||
23 | }; | ||
24 | |||
25 | const uint16_t PROGMEM test_combo[] = {C(KC_C), C(KC_V), COMBO_END}; | ||
26 | combo_t key_combos[COMBO_COUNT] = {COMBO_ACTION(test_combo)}; | ||
27 | |||
28 | void process_combo_event(uint16_t combo_index, bool pressed) { | ||
29 | backlight_step(); | ||
30 | } | ||
diff --git a/keyboards/anavi/macropad2/keymaps/copypaste/rules.mk b/keyboards/anavi/macropad2/keymaps/copypaste/rules.mk new file mode 100644 index 000000000..ab1e43818 --- /dev/null +++ b/keyboards/anavi/macropad2/keymaps/copypaste/rules.mk | |||
@@ -0,0 +1 @@ | |||
COMBO_ENABLE = yes | |||
diff --git a/keyboards/anavi/macropad2/keymaps/default/keymap.c b/keyboards/anavi/macropad2/keymaps/default/keymap.c new file mode 100644 index 000000000..c880ff660 --- /dev/null +++ b/keyboards/anavi/macropad2/keymaps/default/keymap.c | |||
@@ -0,0 +1,30 @@ | |||
1 | /* Copyright 2021 Leon Anavi <leon@anavi.org> | ||
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_A, KC_B | ||
22 | ) | ||
23 | }; | ||
24 | |||
25 | const uint16_t PROGMEM test_combo[] = {KC_A, KC_B, COMBO_END}; | ||
26 | combo_t key_combos[COMBO_COUNT] = {COMBO_ACTION(test_combo)}; | ||
27 | |||
28 | void process_combo_event(uint16_t combo_index, bool pressed) { | ||
29 | backlight_step(); | ||
30 | } | ||
diff --git a/keyboards/anavi/macropad2/keymaps/default/rules.mk b/keyboards/anavi/macropad2/keymaps/default/rules.mk new file mode 100644 index 000000000..ab1e43818 --- /dev/null +++ b/keyboards/anavi/macropad2/keymaps/default/rules.mk | |||
@@ -0,0 +1 @@ | |||
COMBO_ENABLE = yes | |||
diff --git a/keyboards/anavi/macropad2/keymaps/jitsi/keymap.c b/keyboards/anavi/macropad2/keymaps/jitsi/keymap.c new file mode 100644 index 000000000..afd1dd1d1 --- /dev/null +++ b/keyboards/anavi/macropad2/keymaps/jitsi/keymap.c | |||
@@ -0,0 +1,36 @@ | |||
1 | /* Copyright 2021 Leon Anavi <leon@anavi.org> | ||
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 | /* | ||
20 | * Jitsi Meet keyboard shortcuts: | ||
21 | * V - Start or stop your camera | ||
22 | * M - Mute or unmute your microphone | ||
23 | */ | ||
24 | |||
25 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
26 | [0] = LAYOUT( | ||
27 | KC_M, KC_V | ||
28 | ) | ||
29 | }; | ||
30 | |||
31 | const uint16_t PROGMEM test_combo[] = {KC_M, KC_V, COMBO_END}; | ||
32 | combo_t key_combos[COMBO_COUNT] = {COMBO_ACTION(test_combo)}; | ||
33 | |||
34 | void process_combo_event(uint16_t combo_index, bool pressed) { | ||
35 | backlight_step(); | ||
36 | } | ||
diff --git a/keyboards/anavi/macropad2/keymaps/jitsi/rules.mk b/keyboards/anavi/macropad2/keymaps/jitsi/rules.mk new file mode 100644 index 000000000..ab1e43818 --- /dev/null +++ b/keyboards/anavi/macropad2/keymaps/jitsi/rules.mk | |||
@@ -0,0 +1 @@ | |||
COMBO_ENABLE = yes | |||
diff --git a/keyboards/anavi/macropad2/keymaps/mute/keymap.c b/keyboards/anavi/macropad2/keymaps/mute/keymap.c new file mode 100644 index 000000000..642bf66a8 --- /dev/null +++ b/keyboards/anavi/macropad2/keymaps/mute/keymap.c | |||
@@ -0,0 +1,23 @@ | |||
1 | /* Copyright 2021 Leon Anavi <leon@anavi.org> | ||
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_AUDIO_MUTE, BL_TOGG | ||
22 | ) | ||
23 | }; | ||
diff --git a/keyboards/anavi/macropad2/keymaps/mute/rules.mk b/keyboards/anavi/macropad2/keymaps/mute/rules.mk new file mode 100644 index 000000000..a8b145934 --- /dev/null +++ b/keyboards/anavi/macropad2/keymaps/mute/rules.mk | |||
@@ -0,0 +1,2 @@ | |||
1 | EXTRAKEY_ENABLE = yes | ||
2 | BACKLIGHT_ENABLE = no | ||
diff --git a/keyboards/anavi/macropad2/keymaps/tap_dance/config.h b/keyboards/anavi/macropad2/keymaps/tap_dance/config.h new file mode 100644 index 000000000..b86e862d3 --- /dev/null +++ b/keyboards/anavi/macropad2/keymaps/tap_dance/config.h | |||
@@ -0,0 +1,3 @@ | |||
1 | #pragma once | ||
2 | |||
3 | #define TAPPING_TERM 500 | ||
diff --git a/keyboards/anavi/macropad2/keymaps/tap_dance/keymap.c b/keyboards/anavi/macropad2/keymaps/tap_dance/keymap.c new file mode 100644 index 000000000..63854a62e --- /dev/null +++ b/keyboards/anavi/macropad2/keymaps/tap_dance/keymap.c | |||
@@ -0,0 +1,35 @@ | |||
1 | /* Copyright 2021 Leon Anavi <leon@anavi.org> | ||
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 | enum layers { | ||
20 | _BASE = 0, | ||
21 | }; | ||
22 | |||
23 | enum { | ||
24 | TD_BC = 0 | ||
25 | }; | ||
26 | |||
27 | qk_tap_dance_action_t tap_dance_actions[] = { | ||
28 | [TD_BC] = ACTION_TAP_DANCE_DOUBLE(KC_B, KC_C) | ||
29 | }; | ||
30 | |||
31 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
32 | [_BASE] = LAYOUT( | ||
33 | KC_A, TD(TD_BC) | ||
34 | ) | ||
35 | }; | ||
diff --git a/keyboards/anavi/macropad2/keymaps/tap_dance/rules.mk b/keyboards/anavi/macropad2/keymaps/tap_dance/rules.mk new file mode 100644 index 000000000..e5ddcae8d --- /dev/null +++ b/keyboards/anavi/macropad2/keymaps/tap_dance/rules.mk | |||
@@ -0,0 +1 @@ | |||
TAP_DANCE_ENABLE = yes | |||
diff --git a/keyboards/anavi/macropad2/keymaps/volume/keymap.c b/keyboards/anavi/macropad2/keymaps/volume/keymap.c new file mode 100644 index 000000000..f9ad20d5c --- /dev/null +++ b/keyboards/anavi/macropad2/keymaps/volume/keymap.c | |||
@@ -0,0 +1,23 @@ | |||
1 | /* Copyright 2021 Leon Anavi <leon@anavi.org> | ||
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_VOLU, KC_VOLD | ||
22 | ) | ||
23 | }; | ||
diff --git a/keyboards/anavi/macropad2/keymaps/volume/rules.mk b/keyboards/anavi/macropad2/keymaps/volume/rules.mk new file mode 100644 index 000000000..a8b145934 --- /dev/null +++ b/keyboards/anavi/macropad2/keymaps/volume/rules.mk | |||
@@ -0,0 +1,2 @@ | |||
1 | EXTRAKEY_ENABLE = yes | ||
2 | BACKLIGHT_ENABLE = no | ||
diff --git a/keyboards/anavi/macropad2/keymaps/zoom/keymap.c b/keyboards/anavi/macropad2/keymaps/zoom/keymap.c new file mode 100644 index 000000000..4f681d17f --- /dev/null +++ b/keyboards/anavi/macropad2/keymaps/zoom/keymap.c | |||
@@ -0,0 +1,37 @@ | |||
1 | /* Copyright 2021 Leon Anavi <leon@anavi.org> | ||
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 | /* | ||
20 | * The keymap contains the following shortcuts for Zoom meeting: | ||
21 | * | ||
22 | * Alt+A: Mute/unmute my audio | ||
23 | * Alt+V: Start/stop video | ||
24 | */ | ||
25 | |||
26 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
27 | [0] = LAYOUT( | ||
28 | LALT(KC_A), LALT(KC_V) | ||
29 | ) | ||
30 | }; | ||
31 | |||
32 | const uint16_t PROGMEM test_combo[] = {LALT(KC_A), LALT(KC_V), COMBO_END}; | ||
33 | combo_t key_combos[COMBO_COUNT] = {COMBO_ACTION(test_combo)}; | ||
34 | |||
35 | void process_combo_event(uint16_t combo_index, bool pressed) { | ||
36 | backlight_step(); | ||
37 | } | ||
diff --git a/keyboards/anavi/macropad2/keymaps/zoom/rules.mk b/keyboards/anavi/macropad2/keymaps/zoom/rules.mk new file mode 100644 index 000000000..ab1e43818 --- /dev/null +++ b/keyboards/anavi/macropad2/keymaps/zoom/rules.mk | |||
@@ -0,0 +1 @@ | |||
COMBO_ENABLE = yes | |||
diff --git a/keyboards/anavi/macropad2/macropad2.c b/keyboards/anavi/macropad2/macropad2.c new file mode 100644 index 000000000..0a95d5d27 --- /dev/null +++ b/keyboards/anavi/macropad2/macropad2.c | |||
@@ -0,0 +1,18 @@ | |||
1 | /* | ||
2 | Copyright 2021 Leon Anavi <leon@anavi.org> | ||
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 | #include "macropad2.h" | ||
diff --git a/keyboards/anavi/macropad2/macropad2.h b/keyboards/anavi/macropad2/macropad2.h new file mode 100644 index 000000000..f3d43ad4f --- /dev/null +++ b/keyboards/anavi/macropad2/macropad2.h | |||
@@ -0,0 +1,35 @@ | |||
1 | /* | ||
2 | Copyright 2021 Leon Anavi <leon@anavi.org> | ||
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 "quantum.h" | ||
21 | |||
22 | /* This a shortcut to help you visually see your layout. | ||
23 | * | ||
24 | * The first section contains all of the arguments representing the physical | ||
25 | * layout of the board and position of the keys. | ||
26 | * | ||
27 | * The second converts the arguments into a two-dimensional array which | ||
28 | * represents the switch matrix. | ||
29 | */ | ||
30 | #define LAYOUT( \ | ||
31 | K01, K02 \ | ||
32 | ) \ | ||
33 | { \ | ||
34 | { K01, K02 }, \ | ||
35 | } | ||
diff --git a/keyboards/anavi/macropad2/readme.md b/keyboards/anavi/macropad2/readme.md new file mode 100644 index 000000000..0ef2fede4 --- /dev/null +++ b/keyboards/anavi/macropad2/readme.md | |||
@@ -0,0 +1,49 @@ | |||
1 | # ANAVI Macro Pad 8 | ||
2 | |||
3 | ANAVI Macro Pad 2 is an open source mini mechanical keyboard with 2 keys and backlit. Powered by ATtiny 85 microcontroller and with microUSB connector. Designed with KiCad. | ||
4 | |||
5 | * Keyboard Maintainer: [Leon Anavi](https://github.com/leon-anavi) | ||
6 | * Hardware Supported: ANAVI Macro Pad 2 | ||
7 | * Hardware Availability: [PCB Files](https://github.com/AnaviTechnology/anavi-macro-pad-2) | ||
8 | |||
9 | **Note**: Due to limited firmware space, a _**lot**_ of features have to be disabled to get a functioning QMK based keyboard. | ||
10 | |||
11 | Make example for this keyboard (after setting up your build environment): | ||
12 | |||
13 | make anavi/macropad2:default | ||
14 | |||
15 | See 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). | ||
16 | |||
17 | ## Flashing | ||
18 | ### Prerequisites | ||
19 | |||
20 | ```bash | ||
21 | git clone https://github.com/micronucleus/micronucleus.git | ||
22 | cd micronucleus/commandline/ | ||
23 | sudo make install | ||
24 | ``` | ||
25 | |||
26 | On GNU/Linux distributions, you will need proper privileges to access the MCU. You can either use `sudo` when flashing firmware, or place [these files](https://github.com/micronucleus/micronucleus/blob/master/commandline/49-micronucleus.rules) in /etc/udev/rules.d/. Once added run the following: | ||
27 | |||
28 | ```bash | ||
29 | sudo udevadm control --reload-rules | ||
30 | sudo udevadm trigger | ||
31 | ``` | ||
32 | |||
33 | ### Instructions | ||
34 | |||
35 | * Run one of the following commands: | ||
36 | |||
37 | ```bash | ||
38 | make anavi/macropad2:default:flash | ||
39 | |||
40 | # or directly with... | ||
41 | micronucleus --run <firmware.hex> | ||
42 | ``` | ||
43 | |||
44 | * Plug ANAVI Macro Pad 2 to the USB port and the flashing procedure should start | ||
45 | |||
46 | ### Recovery | ||
47 | |||
48 | * [Original Firmware](https://github.com/AnaviTechnology/anavi-macro-pad-2/tree/main/bootloader) | ||
49 | * [Bootloader Repair](https://digistump.com/wiki/digispark/tutorials/proisp) | ||
diff --git a/keyboards/anavi/macropad2/rules.mk b/keyboards/anavi/macropad2/rules.mk new file mode 100644 index 000000000..984142590 --- /dev/null +++ b/keyboards/anavi/macropad2/rules.mk | |||
@@ -0,0 +1,34 @@ | |||
1 | # MCU name | ||
2 | MCU = attiny85 | ||
3 | |||
4 | # Bootloader selection | ||
5 | BOOTLOADER = micronucleus | ||
6 | OPT_DEFS += -DBOOTLOADER_SIZE=1862 | ||
7 | PROGRAM_CMD = micronucleus --run $(BUILD_DIR)/$(TARGET).hex | ||
8 | |||
9 | # Build Options | ||
10 | # change yes to no to disable | ||
11 | # | ||
12 | BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration | ||
13 | MOUSEKEY_ENABLE = no # Mouse keys | ||
14 | EXTRAKEY_ENABLE = no # Audio control and System control | ||
15 | CONSOLE_ENABLE = no # Console for debug | ||
16 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
17 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
18 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
19 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
20 | NKRO_ENABLE = no # USB Nkey Rollover | ||
21 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
22 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
23 | MIDI_ENABLE = no # MIDI support | ||
24 | UNICODE_ENABLE = no # Unicode | ||
25 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
26 | AUDIO_ENABLE = no # Audio output | ||
27 | |||
28 | # Save as much space as we can... | ||
29 | LTO_ENABLE = yes | ||
30 | GRAVE_ESC_ENABLE = no | ||
31 | MAGIC_ENABLE = no | ||
32 | SPACE_CADET_ENABLE = no | ||
33 | |||
34 | BACKLIGHT_DRIVER = software | ||