aboutsummaryrefslogtreecommitdiffstats
path: root/micropython/boot.py
blob: d55520d5adf7387ac718b0863eabf9c5e66900d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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 to Python path.
sys.path.insert(0, "/stublibs")
sys.path.append("/examples")
sys.path.append("/misc")

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