sago35 / tinygo-keyboard

USB HID keyboard firmware for tinygo
MIT License
78 stars 15 forks source link

Change to always define 6 layers #9

Closed sago35 closed 1 year ago

sago35 commented 1 year ago

This PR change ensures that 6 layers are always allocated, regardless of the definition of Keys at AddXXXKeybeyboard().

In addition, cols, which were previously fixed at 252 keys, have been optimized. This will slightly reduce RAM usage. This also allows the use of Vial's Matrix tester.

sago35 commented 1 year ago

Note that this PR changes the size and layout of the data stored in machine.Flash . It is better to initialize it once using the #8