diff --git a/Readme.md b/Readme.md index 7bc1bfe..4cce81a 100644 --- a/Readme.md +++ b/Readme.md @@ -122,11 +122,10 @@ Todo * Remove debug leds * Add more devices (even more?) * Add ICSP Programmer function -* Add Led support -* Add How does it work? +* Add Led/SPI support * Add rumble support (very hard) * Add Xbox Support (too hard) -* Add Midi Support +* Add Midi (you want that?) * Add Report Out function (for Keyboard Leds etc) * RAW HID diff --git a/examples/System/System.ino b/examples/System/System.ino index b795fe3..98fdadb 100644 --- a/examples/System/System.ino +++ b/examples/System/System.ino @@ -37,17 +37,12 @@ void setup() { } void loop() { - // press a button to put pc into standby mode/wake up + // press a button to put pc into standby mode if (!digitalRead(pinButton)) { digitalWrite(pinLed, HIGH); // See list below for more definitions or the official usb documentation - static bool on = true; - if (on) - System.write(SYSTEM_SLEEP); - else - // System Wakeup is currently not working for Arduino Uno/Mega. - System.write(SYSTEM_WAKE_UP); + System.write(SYSTEM_SLEEP); // simple debounce delay(300);