Thanks. I was looking at FS.h, and the File object looks like it doesn't have a similar to fgets() to read a line of text... is there one that I am missing?
I can write one myself of course, but if there is something that I am just missing ...
Remember in Arduino's definitions FILE_WRITE appends. If you want "normal" write that starts at offset 0 (overwriting anything already at the beginning of the file), use FILE_WRITE_BEGIN.
Here is what I came up with ... how's it look?
#if defined (_LITTLEFS_)
#include <LittleFS.h>
LittleFS_Program myFS;
void fileInit() {
myFS.begin(1 * 1024 * 1024);
printString("\r\nLittleFS: initialized")...
I have a somewhat unusual situation. I have a program I have written in C (a Forth interpreter) that I am trying to get running on a Teensy 4.0.
I am trying to build in file support for the Teensy. When LittleFS is not included it builds with no...
I have a Forth system I have written in C that is as portable as I can make it, meaning that it can run under Windows, Linux and on development boards, including the Teensy 4.
My next step is to try to create a C wrapper for the 4 simple...