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

@@ -186,7 +186,7 @@ void Item::copyPar (aJsonObject *itemV)
}
*/
#ifdef ESP32
#if defined(ARDUINO_ARCH_ESP32)
void analogWrite(int pin, int val)
{
//TBD
@@ -218,6 +218,7 @@ int Item::Ctrl(char * payload, boolean send){
case -1: //Not known command
case -2: //JSON input (not implemented yet
break;
#if not defined(ARDUINO_ARCH_ESP32) and not defined(ESP8266)
case -3: //RGB color in #RRGGBB notation
{
CRGB rgb;
@@ -231,6 +232,7 @@ int Item::Ctrl(char * payload, boolean send){
}
break;
}
#endif
case CMD_ON:
// if (item.getEnableCMD(500) || lanStatus == 4)