KMKfw / kmk_firmware

Clackety Keyboards Powered by Python
https://kmkfw.zulipchat.com
Other
1.4k stars 475 forks source link

Latency issues with switching layers and random key strokes repeating. #824

Closed psi4j closed 1 year ago

psi4j commented 1 year ago

I am experiencing latency issues when switching layers, where I notice the keys I press after switching to a new layer take a while to show on my text editor. I have my number pad on an additional layer that I access by holding down a layer key I have set in the base layer. When I switch its layer, I notice that I randomly will have extra entries of the number '0'.

I have added a static image on SSD1306 oleds, one on each side of my split KLOR keyboard, and two encoder knobs, all of which appear to be working just fine. I originally noticed worse latency issues when trying to use an image for each layer, so I switched to static images, which improved performance a whole lot.

When I switch layers, I expect everything to go as smoothly as if I were holding down shift on a standard factory keyboard and typing the alternative characters. I'm unsure if latency issues are to be expected when displaying images on the oleds. If anyone knows what could help reduce latency or if there is something I might be doing wrong, please let me know. I would appreciate any help or advice. I really would prefer to stick with KMK because I appreciate the simplicity of Python and not having to recompile your firmware to make minor edits. Thank you for reading this.

psi4j commented 1 year ago

I appologize, I would like to add I am using RP2040s. Here is a link to the keyboard build if that is required to understand the hardware. https://github.com/GEIGEIGEIST/KLOR