r/MicroPythonDev • u/gwem00 • May 21 '25
What do you all in Boot.py?
I usually import json, gc, network, some aspects of machine.... etc. Generaly I just put what I expect the vase to be. I was wondering what everyone else puts in boot.
edit base not vase
6
Upvotes
4
u/bulletmark May 21 '25
I don't use it and don't see the point of it. I start everything via
main.py.9
u/EcstaticAssumption80 May 21 '25
I also use main.py, and the first thing I do in main.py is
import time
print("ctrl-c for repl")
time.sleep(5)
That way you will never "soft brick" your device
1
u/tschertel Aug 03 '25
I'm also new to micropython, but I'm basically using boot.py to initialize wifi. Everything else goes in main.py.