boot script

    The system will create the file and in the /flash or /sd (priority) directory, and automatically execute first, and then execute (if If the SD card is detected, execute the SD card), edit the contents of these two scripts to achieve self-startup. If you write an infinite loop (While True) program in, it will cause main.pyCan't run (call first and then, and re-send without infinite loop to solve it.

    • is mainly used to configure the hardware and only needs to be configured once.
    • can be used for the main running program.

    The corresponding specific implementation code here, if you have any questions, just look at the source .

    * The Micro SD card should be formatted as FAT (FAT32) file system
    * FAT formatted memory card will be mounted to /sd, and SPIFFS in internal Flash will be mounted to /flash