Update pro_micro.ino

This commit is contained in:
2020-02-01 18:51:00 +00:00
parent b728114a57
commit 3e35e2ca9c
+5 -4
View File
@@ -23,7 +23,7 @@ Auch hilfreich:
ls /dev/input/by-id/
ls /dev/ttyA*
lsusb
screen /dev/ttyACM0 9600 # Serial Monitor im Terminal
*/
#include "Keyboard.h"
@@ -50,12 +50,13 @@ void loop() {
// Here starts the output action
//Keyboard.press(KEY_LEFT_GUI); // Command key in Mac, use KEY_LEFT_CTRL for Pc
Keyboard.press('v');
//Keyboard.press(KEY_LEFT_SHIFT);
delay(100);
Keyboard.releaseAll(); // This is important after every Keyboard.press it will continue to be pressed
digitalWrite(RXLED, LOW); // set the LED on
delay(300);
digitalWrite(RXLED, HIGH); // set the LED off
//digitalWrite(RXLED, LOW); // set the LED on
//delay(300);
//digitalWrite(RXLED, HIGH); // set the LED off
}
prevButtonState = buttonState;
}