mirror of
https://github.com/anklimov/lighthub
synced 2025-12-07 04:09:49 +03:00
esp32 support, build_flags_{ENVNAME}.sh now can be used and edited in IDE!
This commit is contained in:
@@ -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__)
|
||||
|
||||
Reference in New Issue
Block a user