platformio esp8266, esp32

This commit is contained in:
Yuri Trikoz
2020-06-21 03:43:15 +03:00
parent ac6f51af7b
commit bba7487374
39 changed files with 8579 additions and 166 deletions

View File

@@ -1,7 +1,30 @@
#pragma once
#include <Arduino.h>
#include <FS.h>
#include "FS.h"
#ifdef ESP32
#include "LITTLEFS.h"
#define LittleFS LITTLEFS
#endif
#ifdef ESP8266
#include <LittleFS.h>
#endif
/*
* Инициализация ФС
*/
bool fileSystemInit();
/*
* Удалить файл
*/
void removeFile(const String filename);
/*
* Открыть файл на позиции
*/
File seekFile(const String filename, size_t position = 0);
/*
* Чтение строки из файла

View File

@@ -1,7 +1,9 @@
#pragma once
#include <Arduino.h>
#ifdef ESP8266
#include <TZ.h>
#endif
void Time_Init();