pyboard correct power-down sequence

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
Post Reply
User avatar
MarkHaysHarris777
Posts: 11
Joined: Wed Apr 29, 2015 11:54 pm

pyboard correct power-down sequence

Post by MarkHaysHarris777 » Thu Apr 30, 2015 9:53 pm

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
Cheers,
marcus
:)

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: pyboard correct power-down sequence

Post by dhylands » Fri May 01, 2015 1:06 am

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.

Post Reply