mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 06:32:19 +03:00
esp32 compiling version
This commit is contained in:
@@ -46,11 +46,15 @@
|
||||
|
||||
#define BME_ENABLED
|
||||
|
||||
//#define FSEditor
|
||||
|
||||
//#define SSDP
|
||||
|
||||
/*
|
||||
* Gears
|
||||
*/
|
||||
#define STEPPER_ENABLED
|
||||
#define SERVO_ENABLED
|
||||
//#define SERVO_ENABLED
|
||||
|
||||
/*
|
||||
* Other
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#ifdef FSEditor
|
||||
#include <ESPAsyncWebServer.h>
|
||||
#include <FS.h>
|
||||
|
||||
@@ -25,4 +25,5 @@ class FSEditor : public AsyncWebHandler {
|
||||
virtual void handleRequest(AsyncWebServerRequest* request) override final;
|
||||
virtual void handleUpload(AsyncWebServerRequest* request, const String& filename, size_t index, uint8_t* data, size_t len, bool final) override final;
|
||||
virtual bool isRequestHandlerTrivial() override final { return false; }
|
||||
};
|
||||
};
|
||||
#endif
|
||||
@@ -1,6 +1,8 @@
|
||||
#pragma once
|
||||
#ifdef SSDP
|
||||
#include <Arduino.h>
|
||||
|
||||
extern void SsdpInit();
|
||||
extern String xmlNode(String tags, String data);
|
||||
extern String decToHex(uint32_t decValue, byte desiredStringLength);
|
||||
extern String decToHex(uint32_t decValue, byte desiredStringLength);
|
||||
#endif
|
||||
@@ -1,6 +1,8 @@
|
||||
#pragma once
|
||||
#ifdef SERVO_ENABLED
|
||||
|
||||
#include <Arduino.h>
|
||||
#include <ESP32Servo.h>
|
||||
#include <Servo.h>
|
||||
|
||||
struct Servo_t {
|
||||
@@ -22,4 +24,6 @@ class Servos {
|
||||
std::vector<Servo_t> _items;
|
||||
};
|
||||
|
||||
extern Servos myServo;
|
||||
extern Servos myServo;
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user