This commit is contained in:
Yuri Trikoz
2020-06-19 23:34:30 +03:00
parent 817a3e5898
commit b044497c8e
2 changed files with 42 additions and 32 deletions

View File

@@ -1,4 +1,5 @@
#include "Global.h"
#include "JsonUtils.h"
//==============================Objects.cpp(с данными)==================================
@@ -23,9 +24,8 @@ AsyncWebServer server(80);
//AsyncEventSource events("/events");
#define NUM_BUTTONS 6
boolean but[NUM_BUTTONS];
Bounce * buttons = new Bounce[NUM_BUTTONS];
Bounce *buttons = new Bounce[NUM_BUTTONS];
GMedian<10, int> medianFilter;
@@ -34,6 +34,9 @@ DallasTemperature sensors;
DHTesp dht;
Servo myServo1;
Servo myServo2;
Adafruit_BMP280 bmp;
Adafruit_Sensor *bmp_temp;
Adafruit_Sensor *bmp_pressure;
@@ -106,12 +109,9 @@ boolean udp_data_parse = false;
boolean mqtt_send_settings_to_udp = false;
boolean i2c_scanning = false;
//Buttons
//boolean but[6];
// Udp
boolean udp_busy = false;
unsigned int udp_port = 4210;
@@ -128,7 +128,3 @@ int udp_period;
// i2c
String i2c_list;