forked from mirrors/qmk_userspace
Allow Active High for Pointing Device Motion Pin (#18404)
Needed by the Cirque Trackpad for motion detection
This commit is contained in:
parent
c932e76d36
commit
94d5fe6f90
3 changed files with 15 additions and 0 deletions
|
@ -144,7 +144,11 @@ __attribute__((weak)) void pointing_device_init(void) {
|
|||
{
|
||||
pointing_device_driver.init();
|
||||
#ifdef POINTING_DEVICE_MOTION_PIN
|
||||
# ifdef POINTING_DEVICE_MOTION_PIN_ACTIVE_LOW
|
||||
setPinInputHigh(POINTING_DEVICE_MOTION_PIN);
|
||||
# else
|
||||
setPinInput(POINTING_DEVICE_MOTION_PIN);
|
||||
# endif
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -236,7 +240,11 @@ __attribute__((weak)) void pointing_device_task(void) {
|
|||
# if defined(SPLIT_POINTING_ENABLE)
|
||||
# error POINTING_DEVICE_MOTION_PIN not supported when sharing the pointing device report between sides.
|
||||
# endif
|
||||
# ifdef POINTING_DEVICE_MOTION_PIN_ACTIVE_LOW
|
||||
if (!readPin(POINTING_DEVICE_MOTION_PIN))
|
||||
# else
|
||||
if (readPin(POINTING_DEVICE_MOTION_PIN))
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if defined(SPLIT_POINTING_ENABLE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue