diff --git a/include/defaults.h b/include/defaults.h new file mode 100644 index 0000000..a067eec --- /dev/null +++ b/include/defaults.h @@ -0,0 +1,3 @@ +#pragma once + +#define SERIAL_BAUDRATE 115200 \ No newline at end of file diff --git a/src/main.cpp b/src/main.cpp index c0aaf9f..3ed2e11 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,8 +1,23 @@ +#include "defaults.h" #include +#include void setup() { - // put your setup code here, to run once: + // Initialize serial output + Serial.begin(SERIAL_BAUDRATE); + while (!Serial) + yield(); + Serial.println(); + Serial.println(F("Starting OpenDTU")); + + // Initialize file system + Serial.print(F("Initialize FS... ")); + if (!LITTLEFS.begin()) { + Serial.println(F("failed")); + } else { + Serial.println(F("done")); + } } void loop()