documentation
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
// Presses a key every once in a while on Arduino Leonardo / Pro Micro (ATMega32U4)
|
||||
|
||||
/*
|
||||
* Anmerkung: Der Pro Micro wurde beim Anstecken von Ubuntu nicht wahrgenommen. Nachdem ein bereits
|
||||
* programmierter Pro Micro angesteckt war, wurde auch der neue korrekt identifiziert.
|
||||
* Falls das nicht hilft, könnte der Reset-Ansatz helfen: https://forum.arduino.cc/t/pro-micro-not-showing-up-in-com-port/882257/4
|
||||
*/
|
||||
|
||||
#include "Keyboard.h"
|
||||
|
||||
const unsigned long waitTime = 300000; // 5 minutes
|
||||
const unsigned long waitTime = 299000; // <5 minutes
|
||||
const int buttonPin = 2;
|
||||
|
||||
void setup() {
|
||||
@@ -19,7 +25,7 @@ void loop() {
|
||||
Serial.println("click");
|
||||
|
||||
// press key
|
||||
Keyboard.press(129); // https://www.arduino.cc/reference/en/language/functions/usb/keyboard/keyboardmodifiers/
|
||||
Keyboard.press(129); // Left Shift - https://www.arduino.cc/reference/en/language/functions/usb/keyboard/keyboardmodifiers/
|
||||
delay(2);
|
||||
Keyboard.release(129);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user