NicoHood / HoodLoader2

16u2 Bootloader to reprogram 16u2 + 328/2560 with Arduino IDE
http://www.nicohood.de
737 stars 187 forks source link

Sent Enter/Alt/Shift command #107

Closed Nicolas-Ramthum closed 2 years ago

Nicolas-Ramthum commented 2 years ago

Hello,

How can I sent commands like Enter (Carriage Return)/Alt/Shift using HoodLoader2?

I've been tryed to use Keyboard library ([Keyboard.begin()] (https://www.arduino.cc/reference/en/language/functions/usb/keyboard/keyboardbegin), but Arduino IDE don't alowed to use this library for Arduino Uno.

Tried to use the commands above, but any worked. Someone knows how to?

Serial.write( '\r' ); Serial.write('d', CHAR); Serial.write('d', DEC);

Either any option above using Serial.println also doesn't work.