1
0
Fork 0

[Keyboard] Update encoder code for macro3 (#16005)

This commit is contained in:
Albert Y 2022-03-08 12:09:54 +08:00 committed by GitHub
parent 87c2f97def
commit 8f70adc0b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View file

@ -12,7 +12,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
), ),
[1] = LAYOUT( [1] = LAYOUT(
_______, _______, _______, _______, _______, _______, _______, _______,
RESET, _______, _______, _______ QK_BOOT, _______, _______, _______
) )
}; };

View file

@ -10,9 +10,9 @@ bool encoder_update_kb(uint8_t index, bool clockwise) {
if (!encoder_update_user(index, clockwise)) { return false; } if (!encoder_update_user(index, clockwise)) { return false; }
if (index == 0) { if (index == 0) {
if (clockwise) { if (clockwise) {
tap_code(KC_VOLU); tap_code_delay(KC_VOLU, 10);
} else { } else {
tap_code(KC_VOLD); tap_code_delay(KC_VOLD, 10);
} }
} else if (index == 1) { } else if (index == 1) {
if (clockwise) { if (clockwise) {

View file

@ -6,7 +6,7 @@ Macro3 is a low-profile macro pad with dual encoder support designed by [@davidp
## Keyboard Info ## Keyboard Info
* Keyboard Maintainer: [davidphilipbarr](https://github.com/davidphilipbarr) * Keyboard Maintainer: [filterpaper](https://github.com/filterpaper), [davidphilipbarr](https://github.com/davidphilipbarr)
* Hardware Supported: [Macro3](https://github.com/davidphilipbarr/Macropads/tree/main/macro3) * Hardware Supported: [Macro3](https://github.com/davidphilipbarr/Macropads/tree/main/macro3)
* Hardware Availability: order PCBs with gerber file from the repository * Hardware Availability: order PCBs with gerber file from the repository
@ -21,6 +21,6 @@ See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_to
Enter the bootloader in 3 ways: Enter the bootloader in 3 ways:
* **Bootmagic reset**: Hold down the top right key and plug in the controller. * **Bootmagic reset**: Hold down the top right key and plug in the controller.
* **Keycode in layout**: Press the key mapped to `RESET` if it is configured. * **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is configured.
* **Physical reset pins**: Briefly short the RST and GND pins on the microcontroller using tweezers, a paperclip, or any other conductive material. * **Physical reset pins**: Briefly short the RST and GND pins on the microcontroller using tweezers, a paperclip, or any other conductive material.