qmk/keyboards/anavi/macropad8
Stefan Kerkmann c68e4dec10
[Core] suspend: suppress wake up keypress (#23389)
* suspend: suppress wake up keypress

Waking the host from suspend is done by pressing any key on the
keyboard, the regular key codes assigned to the keys are not important
and must not be sent - otherwise they usually end up in password prompts
as ghost characters that have to be deleted again. This commit adds
suppression for all keys pressed at the time of wake up. Once a key is
released it functions as a regular key again.

Signed-off-by: Stefan Kerkmann <karlk90@pm.me>

* suspend: update wake up matrix after wake up delay

If USB_SUSPEND_WAKEUP_DELAY is set, the keyboard sleeps during wake up -
which can be up to multiple seconds. To handle key presses and releases
in that time frame we have to handle the following cases:

1. Key not pressed before suspend, and not pressed after wakeup → do
   nothing (normal case).
2. Key not pressed before suspend, but pressed after wakeup → set the
   wakeup_matrix bit to 1 (so that the press and release events would be
   suppressed).
3. Key pressed before suspend, but not pressed after wakeup → do nothing
   (the release event will be generated on the first matrix_task() call
   after the wakeup).
4. Key pressed before suspend, and still pressed after wakeup → do
   nothing (the release event will be generated some time later).

Signed-off-by: Stefan Kerkmann <karlk90@pm.me>
Co-authored-by: Sergey Vlasov <sigprof@gmail.com>

* keyboards: anavi: macropad8: disable snake and rgb_test effects

...to shrink the binary size.
2025-11-11 23:35:03 +11:00
..
keymaps/default Update Underglow keycodes (#23765) 2024-08-25 22:15:07 +10:00
config.h Custom oled fonts cleanup (#25665) 2025-09-21 21:40:30 +10:00
keyboard.json [Core] suspend: suppress wake up keypress (#23389) 2025-11-11 23:35:03 +11:00
readme.md [Keyboard] keyboards/anavi: Add ANAVI Macro Pad 8 (#9164) 2020-06-05 00:48:58 -07:00

ANAVI Macro Pad 8

ANAVI Macro Pad 8 is an open source mini mechanical keyboard with 8 keys, backlit, addressable RGB WS2812B LED strip on the back and mini OLED display. Powered by ATmega32U4 microcontroller and with microUSB connector.

  • Keyboard Maintainer: Leon Anavi
  • Hardware Supported: ANAVI Macro Pad 8
  • Hardware Availability: PCB Files

Make example for this keyboard (after setting up your build environment):

qmk compile -kb anavi/macropad8 -km default

Flash to ANAVI Macro Pad 8:

qmk flash -kb anavi/macropad8 -km default

See the build environment setup and the make instructions for more information. Brand new to QMK? Start with our Complete Newbs Guide.