Merge branch 'platformio' into platformio

This commit is contained in:
Yuri Trikoz
2020-06-22 03:18:19 +03:00
committed by GitHub
6 changed files with 21 additions and 15 deletions

View File

@@ -1,11 +1,11 @@
#include "Global.h"
boolean but[NUM_BUTTONS];
Bounce *buttons = new Bounce[NUM_BUTTONS];
Servo myServo1;
Servo myServo2;
boolean but[NUM_BUTTONS];
Bounce *buttons;
void CMD_init() {
sCmd.addCommand("button", button);
sCmd.addCommand("buttonSet", buttonSet);
@@ -257,7 +257,7 @@ void handleButton() {
}
}
switch_number++;
if (switch_number == 6) switch_number = 0;
if (switch_number == NUM_BUTTONS) switch_number = 0;
}
//=====================================================================================================================================

View File

@@ -22,6 +22,8 @@ AsyncWebServer server(80);
DallasTemperature sensors;
/*
* Global vars
*/

View File

@@ -4,14 +4,14 @@ OneWire *oneWire;
GMedian<10, int> medianFilter;
DHTesp dht;
Adafruit_BMP280 bmp;
Adafruit_Sensor *bmp_temp;
Adafruit_Sensor *bmp_pressure;
Adafruit_BMP280 bmp;
Adafruit_Sensor *bmp_temp = bmp.getTemperatureSensor();
Adafruit_Sensor *bmp_pressure = bmp.getPressureSensor();
Adafruit_BME280 bme;
Adafruit_Sensor *bme_temp;
Adafruit_Sensor *bme_pressure;
Adafruit_Sensor *bme_humidity;
Adafruit_BME280 bme;
Adafruit_Sensor *bme_temp = bme.getTemperatureSensor();
Adafruit_Sensor *bme_pressure = bme.getPressureSensor();
Adafruit_Sensor *bme_humidity = bme.getHumiditySensor();
String perception(byte value);
void bmp280T_reading();
@@ -228,9 +228,9 @@ void analog_reading2() {
//=========================================Модуль температурного сенсора ds18b20===========================================================
#ifdef DALLAS_ENABLED
void dallas() {
//String value_name = sCmd.next();
String value_name = sCmd.next();
String pin = sCmd.next();
//String address = sCmd.next();
String address = sCmd.next();
String widget_name = sCmd.next();
String page_name = sCmd.next();
String type = sCmd.next();