esp32 support, build_flags_{ENVNAME}.sh now can be used and edited in IDE!

This commit is contained in:
livello
2018-07-04 01:22:00 +03:00
parent 797ce5d4ce
commit 09726be883
12 changed files with 161 additions and 100 deletions

View File

@@ -33,6 +33,14 @@ extern PubSubClient mqttClient;
static volatile long encoder_value[6];
#endif
#if defined(ESP8266)
static volatile long encoder_value[6];
#endif
#if defined(ARDUINO_ARCH_ESP32)
static volatile long encoder_value[6];
#endif
#if defined(__SAM3X8E__)
static short encoder_irq_map[54];
static long encoder_value[54];
@@ -216,7 +224,7 @@ void Input::dht22Poll() {
}
void Input::printFloatValueToStr(float temp, char *valstr) {
#if defined(__ESP__)
#if defined(ESP8266)
sprintf(valstr, "%2.1f", temp);
#endif
#if defined(__AVR__)