Can Circuit Playground Express using CircuiPY and Mu create Text files?
Hello! I wanted to know if the CPX can write/record data into a text file? I have tried to record the light level data into a text file but it wouldn't work. I tried using the basic write a text file code below but it would also not work. The CPX would flash green as if it's working but no text file would be created in the directory.
Test file creation
try:
with open("/test_write.txt", "w") as file:
file.write("Write test successful!\n")
except Exception as e:
print(f"Error: {e}")
while True:
time.sleep(1) # Keep the board running
If it can create text files, how can I remedy the issue? And if I cannot how can I record my data?