//#include "fileSystem.h"
//#include "buffer.h"
//#include "maxOrder.h"
//#include "editFile.h"
#include "datalog.h"
//#include "sytemConfig.h" // a library to save raw data that is loaded upon start up (use instead of using the EEPROM library)
// fileSystem.h => LittleFS and script timer
// buffer.h => fileSystem.h, stack.h and script timer
// editFile.h => buffer.h
fileSystem FS;
maxOrder MO;
editFile EF;
datalog DL;
#include "wave.h"
void loopCB(byte PC) {
Serial.print(PC); Serial.println("% complete");
}
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
DL.init();
DL.serial(true);
setup_wave_datalog();
setup_wave_datalog();
/*
//FS.init();
FS.serial(true);
Serial.println("");
FS.setFilePath("testFile.txt");
FS.writeFile("testing!");
//FS.serial(true);
int size = FS.fileSize();
FS.printFile();
FS.serial(true);
*/
FS.listFiles();
//EF.serial_detail(true);
//EF.serial(true);
EF.loop_callBack(loopCB);
EF.updateElement("/datalog/wave/0_properties.txt", 1, 1, "365g");
EF.printFile("/datalog/wave/0_properties.txt");
}
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
}