techpaul / PS2KeyAdvanced

Arduino PS2 Keyboard FULL keyboard protocol support and full keys to integer coding
GNU Lesser General Public License v2.1
140 stars 27 forks source link

increase buffer ?? #20

Closed shift838 closed 3 years ago

shift838 commented 3 years ago

is there a way to increase the buffered characters amount? When I use this on one of my Retro computers and if I type something before the program is completely up or before any process is finished; say, "12345" when the program comes up or the process is finished I will only get the first 2-3 characters first typed.

techpaul commented 3 years ago

This may well be another delay in your application not processing keys quick enough.

However you can try changing in PS2KeyCode.h the definition for

#define _RX_BUFFER_SIZE  8

to

#define _RX_BUFFER_SIZE  16
shift838 commented 3 years ago

I did see that line in the library and changed it to 16 and even 32, but had no effect.

techpaul commented 3 years ago

This suggests not reading keyboard quick enough which even for manual keypresses is a very long time in instruction cycles that suggests other things holding up your application.