while true in boot

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: while true in boot

Post by dhylands » Mon Apr 03, 2017 8:47 pm

The primary purpose of boot.py (at least on the pyboard) is to initialize the USB port.

When boot.py is run, the USB port is not yet initialized, so you can call pyb.usb_mode and determine how it will be initialized.

Once boot.py exits, then the USB port is initialized and then main.py is run.

Post Reply