Enable USB keyboard support
This commit is contained in:
parent
c1144e6124
commit
596278e625
@ -2,6 +2,12 @@
|
||||
// [Consul 262.4 Converter] https://deskthority.net/viewtopic.php?t=26908
|
||||
// [Consul 262.5 manual in CS] http://www.sapi.cz/prislusenstvi/c262-5.php#odkazp4
|
||||
|
||||
#define KEYBOARD
|
||||
|
||||
#ifdef KEYBOARD
|
||||
#include <Keyboard.h>
|
||||
#endif
|
||||
|
||||
#include <TimerOne.h>
|
||||
|
||||
// pinout config
|
||||
@ -350,9 +356,11 @@ void processKbdByte(int data) {
|
||||
}
|
||||
|
||||
#ifdef KEYBOARD
|
||||
Keyboard.press(keyChar);
|
||||
delay(10);
|
||||
Keyboard.release(keyChar);
|
||||
if (!hostOnline) {
|
||||
Keyboard.press(keyChar);
|
||||
delay(10);
|
||||
Keyboard.release(keyChar);
|
||||
}
|
||||
#endif
|
||||
|
||||
typeKey(keyChar);
|
||||
|
Loading…
Reference in New Issue
Block a user