Reset and boot modes
====================
There are soft resets and hard resets.
- A soft reset simply clears the state of the MicroPython virtual machine,
but leaves hardware peripherals unaffected. To do a soft reset, simply press
**Ctrl+D** on the REPL, or within a script do::
import sys
sys.exit()
- A hard reset is the same as performing a power cycle to the board. In order to
hard reset the WiPy, press the switch on the board or::
import machine
machine.reset()
Safe boot
---------
If something goes wrong with your WiPy, don't panic! It is almost
impossible for you to break the WiPy by programming the wrong thing.
The first thing to try is to boot in safe mode: this temporarily skips
execution of ``boot.py`` and ``main.py`` and gives default WLAN settings.
If you have problems with the filesystem you can :ref:`format the internal flash
drive