Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increased number of macros/layers ? #54

Closed
Synless opened this issue Feb 10, 2018 · 3 comments
Closed

Increased number of macros/layers ? #54

Synless opened this issue Feb 10, 2018 · 3 comments

Comments

@Synless
Copy link

Synless commented Feb 10, 2018

Hi !
First, thanks for Easy AVR. I just modded a Filco TKL with a Pegasus Hoof and it does wonder.

I wanted to type characters like ő è ú í ü and other unicodes but currently it is not possible from a US layout. I wish to keep the US layout while being able to print special characters.
I have seen that it was discussed already in issue 35 about unicode, and I thought of a workaround : using Alt+XXXX to print them. But since a lot of macros is required I try to increase the maximum number of macros and layers.

(Disclaimer, I am not great with Python).
I went to guy.py and changed the number of macros from 14 to 16 as a beginning and then I added M15, M16 on the other files while pushing aside some other macros to get some bytes available (from the second parameter of the scancode table).

MACRO_NUM = 14

"SCANCODE_M14": ("M14", 0xDD, "M14"),

Selector(rowframe, self.main, 4, "SCANCODE_M14")

case SCANCODE_M14:

#define NUMBER_OF_MACROS (14)

But now during the firmware building I have this error :
image

I will try to work it out but due to my limited knowledge in Python, any help would be appreciated.
And once again, great piece of software.

@dhowland
Copy link
Owner

Adding more macros to the firmware is more complicated than you think. It requires a change to the C code.

@Synless
Copy link
Author

Synless commented Feb 11, 2018

Could you give hints on where to look for ?
Would it be possible to have more macros and layers in the foreseeable future ?
If not, is there any other solutions for unicode on custom controllers you could think of ?

dhowland added a commit that referenced this issue Feb 11, 2018
@dhowland
Copy link
Owner

Sorry, I was taking care of a baby when I responded. I committed a change that demonstrates how to increase the number of macros. If you want to make your own branch with even more macros, you can use the latest code as a base.

Unicode is really an issue for the PC, rather than the keyboard. They keyboard sends scancodes, not characters. The PC is responsible for translating the scancodes into characters, and in languages with many diacritics/umlauts/accents/whatever, there are more characters than there are keys. If you need to enter those characters, you might want to look into internationalization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants