I'm not very good with the math and programming, but I did figure out the swedish scancodes for a couple characters.
I wish I had a backslash, though its fairly complete with the most usable ones for me right now..
Heres stuff I've found so far:
/* ASCII: 34 */ 159, // doublequotes
/* ASCII: 39 */ 49, // quote
/* ASCII: 40 */ 165, // opn parenthesis
/* ASCII: 41 */ 166, // cls parenthesis
/* ASCII: 42 */ 177, // wildcard
/* ASCII: 43 */ 45, // plus
/* ASCII: 44 */ 54, // comma
/* ASCII: 45 */ 56, // minus
/* ASCII: 47 */ 164, // slash
/* ASCII: 59 */ 182, // semicolon
/* ASCII: 58 */ 183, // colon
/* ASCII: 63 */ 173, //underline
/* ASCII: 61 */ 167, // equals
/* ASCII: 95 */ 184, // questionmark
(to be placed in the correct line ordered by the "ASCII: XX" number)
I used a semi-naive approach and printed all characters and named them by stealing the table from
http://www.ascii-code.com/ and running:
cat ascii-code | awk '{ print "DigiKeyboard.println(\""$1" - "$7" "$8" - "$5"\");" }'
outputs runnable code like:
DigiKeyboard.println("35 - Number - #");
DigiKeyboard.println("36 - Dollar - $");
DigiKeyboard.println("37 - Procenttecken - %");
If I printed Number-character # but the Dollar-sign $ was printed then I knew # has the scancode in the scancode-ascii-table.h for $. I would simply take that value and place it in the table line for the $ sign instead giving a correctly printed character. (# == /* ASCII: 35 */ XXX, and $ == /* ASCII: 36 */ XXX,).
A tip is to output to cat > textoutput in a console terminal since that wont translate characters to control-codes/shortcuts that mess up your windows and start writing the characters to other applications (happened way too many times).
I thought I would write some of my findings so anyone who googles this issue would get some hints on doing it the straight-forward but inefficient way.
Anyway, grateful for a backslash and a proper solution to this !
