summaryrefslogtreecommitdiffstats
path: root/micropython/boot.py
blob: 68b0e59f8711af767439f38e83a9bbaad70fca7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
print("boot.py")

# Start the watchdog first.
if 1:
	import machine
	watchdog = machine.WDT(timeout=5000).feed
	print("Watchdog active.")
else:
	watchdog = None
	print("Watchdog inactive.")

import sys, gc

# Add stubs to Python path.
sys.path.insert(0, "/stublibs")

# Enable gc after allocation of this many bytes:
gc.threshold(2**11)
gc.collect()
bues.ch cgit interface