mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
Версия для esp32
This commit is contained in:
@@ -2,11 +2,14 @@
|
||||
|
||||
//===========Firmware=============================================================================================================================================
|
||||
#define FIRMWARE_VERSION 274
|
||||
#define ESP8266_FLASH_SIZE_1MB true
|
||||
#define ESP8266_FLASH_SIZE_1MB false
|
||||
//===========FileSystem==============================================================================================================================================
|
||||
#define USE_LITTLEFS false
|
||||
#define USE_LITTLEFS true
|
||||
//==================================================================================================================================================================
|
||||
#define NUM_BUTTONS 6
|
||||
#ifndef LED_BUILTIN
|
||||
#define LED_BUILTIN 2
|
||||
#endif
|
||||
#define LED_PIN LED_BUILTIN
|
||||
//===========MQTT=================================================================================================================================================
|
||||
#define MQTT_RECONNECT_INTERVAL 20000
|
||||
|
||||
@@ -8,8 +8,16 @@
|
||||
|
||||
#include <FS.h>
|
||||
|
||||
#ifdef ESP32
|
||||
#include <SPIFFS.h>
|
||||
extern FS* filesystem;
|
||||
#define FileFS SPIFFS
|
||||
#define FS_NAME "SPIFFS"
|
||||
#endif
|
||||
|
||||
#ifdef ESP8266
|
||||
#if USE_LITTLEFS
|
||||
#include <LittleFS.h>
|
||||
#include "LittleFS.h"
|
||||
extern FS LittleFS;
|
||||
using littlefs_impl::LittleFSConfig;
|
||||
extern FS* filesystem;
|
||||
@@ -20,7 +28,9 @@ extern FS* filesystem;
|
||||
#define FileFS SPIFFS
|
||||
#define FS_NAME "SPIFFS"
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
extern void getFSInfo();
|
||||
extern bool getInfo(FSInfo& info);
|
||||
#ifdef ESP8266
|
||||
extern bool getInfo(FSInfo& info);
|
||||
#endif
|
||||
@@ -3,7 +3,14 @@
|
||||
#ifdef uartEnable
|
||||
#include "SoftwareSerial.h"
|
||||
|
||||
#ifdef ESP8266
|
||||
#include <SoftwareSerial.h>
|
||||
extern SoftwareSerial* myUART;
|
||||
#else
|
||||
#include <HardwareSerial.h>
|
||||
extern HardwareSerial* myUART;
|
||||
#endif
|
||||
|
||||
|
||||
extern void uartInit();
|
||||
extern void uartHandle();
|
||||
|
||||
Reference in New Issue
Block a user