Closed CrazyCoder closed 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.
Feel free to further improve it by disabling lights when USB is suspended and enabling them back when the PC wakes.
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.