Page 1 of 1

pyboard correct power-down sequence

Posted: Thu Apr 30, 2015 9:53 pm
by MarkHaysHarris777
Greetings, I have a fundamental power question: what is the preferred way to power-down the the pyboard? It seems that its as simple as ejecting the USB drive from the pc, and then just unplugging the pyboard from the usb cable. True? Is there some 'halt' or 'shutdown' command that needs to be executed first?
tnx

Re: pyboard correct power-down sequence

Posted: Fri May 01, 2015 1:06 am
by dhylands
If you're writing to files, you should probably call os.sync() to make sure that any unwritten blocks actually get written to flash.

But other than that - yeah you can just remove power.