platformio / platformio-examples

PlatformIO Project Examples
Apache License 2.0
581 stars 175 forks source link

platformio-examples "Blink" doesn't work #26

Closed kleinlaut closed 5 years ago

kleinlaut commented 5 years ago

Hello, I installed Atom with PlatformIO (actuell Releases) and started with the example "Blink". It is not possible, to compile thate code. This is te message: ############################# No dependencies Compiling .pioenvs\esp32dev\src\main.cpp.o Compiling .pioenvs\esp32dev\FrameworkArduino\base64.cpp.o Compiling .pioenvs\esp32dev\FrameworkArduino\cbuf.cpp.o Compiling .pioenvs\esp32dev\FrameworkArduino\esp32-hal-adc.c.o Compiling .pioenvs\esp32dev\FrameworkArduino\esp32-hal-bt.c.o src\main.cpp: In function 'void setup()':

src\main.cpp:15:11: error: 'LED_BUILTIN' was not declared in this scope pinMode(LED_BUILTIN, OUTPUT); ^ src\main.cpp: In function 'void loop()': src\main.cpp:21:16: error: 'LED_BUILTIN' was not declared in this scope digitalWrite(LED_BUILTIN, HIGH); ^ *** [.pioenvs\esp32dev\src\main.cpp.o] Error 1 [ERROR] Took 3.39 seconds ############################################ Does anyone knows, what's happening? Thank you very much for your answers!

Regards

kleinlaut

kleinlaut commented 5 years ago

Sorry, for ESP32 I had to uncomment a line at the code. Then it works!