2020-01-26 23:18:24 +00:00
|
|
|
# This file is executed on every boot (including wake-boot from deepsleep)
|
|
|
|
# Be careful about doing things that loop here, you may have to reinstall the firmware
|
|
|
|
|
|
|
|
# import esp
|
|
|
|
# esp.osdebug(None)
|
|
|
|
|
|
|
|
# Initalize the board
|
2020-01-27 19:48:35 +00:00
|
|
|
from board import TOTAL_DOTS, BOARD
|
2020-01-26 23:18:24 +00:00
|
|
|
|
|
|
|
# Class that contains display methods, animations, etc
|
|
|
|
from pixels import Pixo
|
|
|
|
# Blank the display
|
|
|
|
Pixo().clear()
|
|
|
|
|
|
|
|
# Small ease of use methods
|
|
|
|
from helpers import *
|
|
|
|
|
|
|
|
# Setup wifi connection
|
|
|
|
import wifi
|
|
|
|
|
2020-01-27 00:00:04 +00:00
|
|
|
# Start an anonymous FTP server (TODO: Do this on the AP_IF only)
|
2020-01-27 19:48:35 +00:00
|
|
|
import uftpd
|