Open jeriellopez opened 4 months ago
Update quantum/encoder.c
bool encoder_queue_full_advanced(encoder_events_t *events) {
// Maximum is 128 since uint8_t's max is 255.
return events->head == ((events->tail + MAX_QUEUED_ENCODER_EVENTS - 1) % MAX_QUEUED_ENCODER_EVENTS);
// at 4 encoders, MAX_QUEUED_ENCODER_EVENTS becomes 5. 0 - 1 is 255, and 255 % 5 is 0
// which will evaluate to true for the code below, indicating "full", even though it is actually empty.
// return events->head == (events->tail - 1) % MAX_QUEUED_ENCODER_EVENTS;
}
This works: main keyboard info.json
keymap.c
This builds, but none of the rotary encoders work:
keymap.c:
My board uses an rp2040. This old precompiled firmware works with 4 encoders: https://github.com/pabile/Pabile-Keyboards/blob/main/firmware_precompiled/vial/pabile_p20v8iii_wowenkho.uf2