The Teensy microcontroller got a firmware update ![]()
- Persistent flash memory
- Flash memory file handling
- Autostart from flash
- Built in SD Card file handling (Teensy 4.1)
Here a small example:
import teensy
const fs = teensy.fs
const FS_WRITE = 1
file = fs.open("flash:/test.txt", FS_WRITE)
file.write("test\n")
file.close()
You can upload console.bas to the Teensy to get a command line interface with commands like ls, cd or cp to manage your files. Type โhelpโ to get a list of all available commands.