-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vinscant: Organize files in lib/ & res/. Boot & main loop cleanup.
- Loading branch information
1 parent
367d7c9
commit cb105d4
Showing
9 changed files
with
1,607 additions
and
171 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import gc | ||
import machine | ||
import network | ||
import time | ||
import webrepl | ||
|
||
network.hostname("vinscant") | ||
wlan = network.WLAN(network.STA_IF) | ||
wlan.active(True) | ||
print("Connecting to WiFi...") | ||
wlan.connect('Zeus WPI', 'zeusisdemax') | ||
while not wlan.isconnected(): | ||
pass | ||
print("Connected to WiFi with ifconfig:", wlan.ifconfig()) | ||
|
||
print("Starting webrepl...") | ||
webrepl.start() | ||
print("Webrepl started") | ||
|
||
print("Heap bytes used before GC:", gc.mem_alloc()) | ||
gc.collect() | ||
print("Heap bytes used after GC:", gc.mem_alloc()) | ||
|
||
print("Boot done") | ||
|
||
print("Starting watchdog in 1s, interupt now with Ctrl+C") | ||
time.sleep(1) | ||
watchdog = machine.WDT(timeout=10 * 1000) | ||
print("Watchdog started") |
Empty file.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Ansi color codes | ||
RESET = "\x1b[0m" | ||
BOLD = "\x1b[1m" | ||
UNDERLINE = "\x1b[4m" | ||
BLACK = "\x1b[30m" | ||
RED = "\x1b[31m" | ||
GREEN = "\x1b[32m" | ||
YELLOW = "\x1b[33m" | ||
BLUE = "\x1b[34m" |
Oops, something went wrong.