Skip to content

Commit 8f70adc

Browse files
authored
[Keyboard] Update encoder code for macro3 (#16005)
1 parent 87c2f97 commit 8f70adc

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

keyboards/macro3/config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#define MATRIX_COLS 4
1919

2020
/* key matrix pins */
21-
#define DIRECT_PINS { \
21+
#define DIRECT_PINS { \
2222
{ D7, C6, D4, D1 }, \
2323
{ B1, B4, B5, B3 } \
2424
}

keyboards/macro3/keymaps/default/keymap.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
1212
),
1313
[1] = LAYOUT(
1414
_______, _______, _______, _______,
15-
RESET, _______, _______, _______
15+
QK_BOOT, _______, _______, _______
1616
)
1717
};
1818

keyboards/macro3/macro3.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ bool encoder_update_kb(uint8_t index, bool clockwise) {
1010
if (!encoder_update_user(index, clockwise)) { return false; }
1111
if (index == 0) {
1212
if (clockwise) {
13-
tap_code(KC_VOLU);
13+
tap_code_delay(KC_VOLU, 10);
1414
} else {
15-
tap_code(KC_VOLD);
15+
tap_code_delay(KC_VOLD, 10);
1616
}
1717
} else if (index == 1) {
1818
if (clockwise) {

keyboards/macro3/readme.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Macro3 is a low-profile macro pad with dual encoder support designed by [@davidp
66

77
## Keyboard Info
88

9-
* Keyboard Maintainer: [davidphilipbarr](https://github.com/davidphilipbarr)
9+
* Keyboard Maintainer: [filterpaper](https://github.com/filterpaper), [davidphilipbarr](https://github.com/davidphilipbarr)
1010
* Hardware Supported: [Macro3](https://github.com/davidphilipbarr/Macropads/tree/main/macro3)
1111
* Hardware Availability: order PCBs with gerber file from the repository
1212

@@ -21,6 +21,6 @@ See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_to
2121
Enter the bootloader in 3 ways:
2222

2323
* **Bootmagic reset**: Hold down the top right key and plug in the controller.
24-
* **Keycode in layout**: Press the key mapped to `RESET` if it is configured.
24+
* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is configured.
2525
* **Physical reset pins**: Briefly short the RST and GND pins on the microcontroller using tweezers, a paperclip, or any other conductive material.
2626

0 commit comments

Comments
 (0)