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

special characters #1

Open
iecxiv opened this issue May 18, 2023 · 1 comment
Open

special characters #1

iecxiv opened this issue May 18, 2023 · 1 comment

Comments

@iecxiv
Copy link

iecxiv commented May 18, 2023

Hello! I`m testing this app.

On the one hand I had to change the digispark keyboard library so that the layout of my keyboard matches my system:
https://github.com/Dasor/digispark-keyboard-layout-Spanish

I am not able to translate certain characters through the STRING command.

For example: To write ñ I have done the following:

-On android code:
added>> s = s.replace('ñ', '\001');
before>> for (char c:s.toCharArray()){
this.btSocket.getOutputStream().write(c);
try {
Thread.sleep(10);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
-On arduino code keyboard.h:
...
#define KEY_SEMICOLON 51
...
size_t write(uint8_t chr) {
if(chr == '@') {
sendKeyStroke(31,MODIFIERKEY_RIGHT_ALT);
}
else if(chr == '#') {
sendKeyStroke(32, MODIFIERKEY_RIGHT_ALT);
}
else if(chr == 'ñ'){
sendKeyStroke(KEY_SEMICOLON);
}
...

That is, replace the character in the sending. And reassign it on receipt prior to writing

I am not able to write other types of characters such as #,€

Can you enlighten me and help me a little to see what is the way to solve it?

Thanks in advance

@iecxiv
Copy link
Author

iecxiv commented May 19, 2023

fixed all characters except € and ¬.
For #, changed # by \000 in Execution engine and ino code.

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

No branches or pull requests

1 participant