Add ability to poweroff ADNS5050 sensor (#24223)

* Add ability to poweroff ADNS5050 sensor

* ploopyco/trackball_nano: Poweroff ADNS5050 on suspend
This commit is contained in:
Colin Kinloch 2024-08-26 21:06:53 +01:00 committed by GitHub
parent df5800b6c4
commit cc3bc2af11
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 25 additions and 0 deletions

View file

@ -20,3 +20,12 @@
// Dummy
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {{{ KC_NO }}};
void suspend_power_down_user(void) {
// Switch off sensor + LED making trackball unable to wake host
adns5050_power_down();
}
void suspend_wakeup_init_user(void) {
adns5050_init();
}