To switch off completely, double-press the power button. History is lost. While sleeping, the USB serial monitor disconnects. To stop the device sleeping while plugged into USB during development, set ...