Changed key from right ctrl (132) to left shift (129)
This commit is contained in:
@@ -17,10 +17,10 @@ void loop() {
|
|||||||
if (buttonState == HIGH) {
|
if (buttonState == HIGH) {
|
||||||
Serial.println("click");
|
Serial.println("click");
|
||||||
|
|
||||||
// press right ctrl
|
// press key
|
||||||
Keyboard.press(132);
|
Keyboard.press(129); // https://www.arduino.cc/reference/en/language/functions/usb/keyboard/keyboardmodifiers/
|
||||||
delay(10);
|
delay(2);
|
||||||
Keyboard.release(132);
|
Keyboard.release(129);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
Serial.println("LOW");
|
Serial.println("LOW");
|
||||||
|
|||||||
Reference in New Issue
Block a user