File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
digistump-avr/libraries/DigisparkKeyboard Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 3
3
*
4
4
* TODO: Make a proper file header. :-)
5
5
* Modified for Digispark by Digistump
6
+ * Version working with belgian keyboards
6
7
*/
7
8
#ifndef __DigiKeyboard_h__
8
9
#define __DigiKeyboard_h__
@@ -201,12 +202,13 @@ class DigiKeyboardDevice : public Print {
201
202
}
202
203
203
204
size_t write (uint8_t chr) {
205
+ // Scan codes which use 7 bits
204
206
if (chr == ' <' )
205
- sendKeyStroke (100 );
207
+ sendKeyStroke (0x64 );
206
208
else if (chr == ' >' )
207
- sendKeyStroke (100 , MOD_SHIFT_RIGHT);
209
+ sendKeyStroke (0x64 , MOD_SHIFT_RIGHT);
208
210
else if (chr == ' \\ ' )
209
- sendKeyStroke (100 , MOD_ALT_RIGHT);
211
+ sendKeyStroke (0x64 , MOD_ALT_RIGHT);
210
212
211
213
else
212
214
{
Original file line number Diff line number Diff line change 9
9
#define AltGr 0x40
10
10
11
11
const unsigned char ascii_to_scan_code_table [] PROGMEM = {
12
- // ASCII Code HID Usage Key pos on a US Keyboard
12
+ // Code HID Usage Key pos on a US Keyboard
13
13
// /* ASCII: 0 */ 0,
14
14
// /* ASCII: 1 */ 0,
15
15
// /* ASCII: 2 */ 0,
You can’t perform that action at this time.
0 commit comments