Now, you can click on the Upload icon to compile and upload the code. Additionally, if you have a syntax error somewhere in your program, it will underline it in red even before compiling.Īfter that, press Ctrl+ S or go to File > Save to save the file. We recommend that you copy this code manually, so that you see the autocompletion and other interesting features of the IDE in action. ![]() It works with the ESP32 and ESP8266 boards (both have the on-board LED connected to GPIO 2). This code blinks the on-board LED every second. put your main code here, to run repeatedly: ![]() ![]() put your setup code here, to run once: Uploading Code using PlatformIO IDE: ESP32/ESP8266Ĭopy the following code to your main.cpp file. In PlatformIO, all your Arduino sketches should start with the #include.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |