minor update

This commit is contained in:
NicoHood 2014-06-05 23:06:36 +02:00
parent 4cdd84bfac
commit 5665051f8f
2 changed files with 4 additions and 10 deletions

View file

@ -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

View file

@ -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);