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.4 Converter] https://deskthority.net/viewtopic.php?t=26908
|
||||||
// [Consul 262.5 manual in CS] http://www.sapi.cz/prislusenstvi/c262-5.php#odkazp4
|
// [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>
|
#include <TimerOne.h>
|
||||||
|
|
||||||
// pinout config
|
// pinout config
|
||||||
@ -350,9 +356,11 @@ void processKbdByte(int data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef KEYBOARD
|
#ifdef KEYBOARD
|
||||||
Keyboard.press(keyChar);
|
if (!hostOnline) {
|
||||||
delay(10);
|
Keyboard.press(keyChar);
|
||||||
Keyboard.release(keyChar);
|
delay(10);
|
||||||
|
Keyboard.release(keyChar);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typeKey(keyChar);
|
typeKey(keyChar);
|
||||||
|
Loading…
Reference in New Issue
Block a user