mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
eliminated Keyboard.type() - unnecessary duplication of Keyboard.write() (David Mellis). Also edit KeyboardReprogram example which was the only example using type()
This commit is contained in:
@ -15,7 +15,7 @@
|
||||
* wire to connect D2 to ground.
|
||||
|
||||
created 5 Mar 2012
|
||||
modified 27 Mar 2012
|
||||
modified 28 Mar 2012
|
||||
by Tom Igoe
|
||||
|
||||
This example is in the public domain
|
||||
@ -63,7 +63,7 @@ void loop() {
|
||||
// 3000 ms is too long. Delete it:
|
||||
for (int keystrokes=0; keystrokes < 6; keystrokes++) {
|
||||
delay(500);
|
||||
Keyboard.type(KEY_BACKSPACE);
|
||||
Keyboard.write(KEY_BACKSPACE);
|
||||
}
|
||||
// make it 1000 instead:
|
||||
Keyboard.println("1000);");
|
||||
|
Reference in New Issue
Block a user