EspTinyUSB icon indicating copy to clipboard operation
EspTinyUSB copied to clipboard

Keyboard Multi Layout support

Open joelsernamoreno opened this issue 3 years ago • 5 comments

Hi!

I added multi layout support

Now you can use en_us, es_es, it_it layouts

I will try to add more layouts when I have free time

To use this: read the Keyboard multi layout support section in README.md

joelsernamoreno avatar Jan 16 '21 14:01 joelsernamoreno

Thanks for this PR, but i would suggest to change code the way the users wont need to change library to use it.

chegewara avatar Jan 16 '21 20:01 chegewara

I think this is a little difficult

If you have any idea how to do this, I can try this

joelsernamoreno avatar Jan 16 '21 20:01 joelsernamoreno

There is few ways. One is to include all keymap arrays and add function that will assign one when language/layout is selected with separate function. This way is not the best option, because will include all arrays and increase binary by 1-2kB, depending on layouts amount. But this is some start.

Another option may be to add extern KEYMAP[] in hidkeyboard.h and user will have to add #include layoutxxx.h in their code.

chegewara avatar Jan 16 '21 20:01 chegewara

Hi

I have seen that you have added SD Mass Storage

I tried to test this but when I compile the example your library gives many errors.

Now I can't use the keyboard example either

I attach screenshots with the errors:

Selección_049

Selección_050

Selección_051

Selección_052

Selección_053

joelsernamoreno avatar Feb 10 '21 22:02 joelsernamoreno

@joelsernamoreno Please open new issue so we can track it.

chegewara avatar Feb 11 '21 11:02 chegewara