Files
ws2/src/boot.py
2026-01-24 13:11:34 +08:00

13 lines
280 B
Python

# This file is executed on every boot (including wake-boot from deepsleep)
import esp, gc, uos, machine
esp.osdebug(None)
#uos.dupterm(None, 1) # disable REPL on UART(0)
# cpu freq = 160MHz
machine.freq(160000000)
# memory auto collect (<16KB)
gc.threshold(16384)
gc.collect()