philipellisis / arduino-virtual-pinball-board

This is some simple code to make a virtual pinball compatible board that works off of the Arduino firmware
21 stars 8 forks source link

Fix wake from sleep when USB is suspended #2

Closed CrazyCoder closed 1 year ago

CrazyCoder commented 1 year ago

Do not read/send accelerometer and plunger when the PC is in sleep mode and USB is suspended. You can still wake the PC by pressing any button.

CrazyCoder commented 1 year ago

Feel free to further improve it by disabling lights when USB is suspended and enabling them back when the PC wakes.