|
3 | 3 |
|
4 | 4 | import board |
5 | 5 | import digitalio |
6 | | -from lib.adafruit_mcp230xx.mcp23017 import ( |
7 | | - MCP23017, # This is Hacky V5a Devel Stuff### |
8 | | -) |
| 6 | + |
9 | 7 | from lib.adafruit_tca9548a import TCA9548A # This is Hacky V5a Devel Stuff### |
10 | 8 |
|
11 | | -# from lib.pysquared.Big_Data import AllFaces ### This is Hacky V5a Devel Stuff### |
| 9 | +import storage |
| 10 | + |
| 11 | +#need to call this to write new code to the board, otherwise the baord will not appear! |
| 12 | +def wipe_system(): |
| 13 | + storage.erase_filesystem() |
| 14 | +# from lib.pysquared.Big_Data import AllFaces ### This is Hacky V5a Devel Stuff## |
12 | 15 | from lib.pysquared.beacon import Beacon |
13 | 16 | from lib.pysquared.cdh import CommandDataHandler |
14 | 17 | from lib.pysquared.config.config import Config |
|
29 | 32 | from lib.pysquared.watchdog import Watchdog |
30 | 33 | from version import __version__ |
31 | 34 |
|
| 35 | +#TO DO: turn this into a real test for our flash memory |
| 36 | +def test_sd(): |
| 37 | + print(os.listdir()) |
| 38 | + print("___________") |
| 39 | + os.mkdir('sd/new_folder') |
| 40 | + print(os.listdir('sd')) |
| 41 | + print("_______________") |
| 42 | + with open('boot_out.txt', 'r') as file: |
| 43 | + print(file.read()) |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | +from lib.adafruit_mcp230xx.mcp23017 import ( |
| 48 | + MCP23017, # This is Hacky V5a Devel Stuff### |
| 49 | +) |
| 50 | + |
32 | 51 | rtc = MicrocontrollerManager() |
33 | 52 |
|
34 | 53 | logger: Logger = Logger( |
@@ -191,6 +210,8 @@ def all_faces_on(): |
191 | 210 | FACE4_ENABLE.value = True |
192 | 211 |
|
193 | 212 |
|
| 213 | + |
| 214 | + |
194 | 215 | ## Face Sensor Stuff ## |
195 | 216 |
|
196 | 217 | # This is the TCA9548A I2C Multiplexer |
|
0 commit comments