SonixQMK / qmk_firmware

Open-source keyboard firmware for Atmel AVR and Arm USB families
https://qmk.fm
GNU General Public License v2.0
515 stars 408 forks source link

Core: Support inverted scan logic for optical switches #299

Closed dexter93 closed 1 year ago

dexter93 commented 1 year ago

Some optical switch designs use inverted logic.

To invert the keypress logic, configure pressed_key.pin_state in info.json:

    "pressed_key.pin_state": 1,

or, define PRESSED_KEY_PIN_STATE 1 in config.h

Description

Types of Changes

Issues Fixed or Closed by This PR

Checklist

dexter93 commented 1 year ago

pr tracking https://github.com/qmk/qmk_firmware/pull/16340

dexter93 commented 1 year ago

Closing, since the change got re-implemented and merged in upstream. Next rebase cycle will include it natively