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