ReComenda-se assistir ao video Getting Started with ESP32 - Step-By-Step Tutorial de Tomasz Tarnowski.
O video aCima compila um simples programa para fazer o led da plaCa do ESP32 e enviar mensagens pela porta serial:
#include <Arduino.h>
void setup() {
// put your setup code here, to run once:
pinMode(LED_BUILTIN, OUTPUT);
Serial.begin(115200);
Serial.println("Hello from the setup()");
}
void loop() {
// put your main code here, to run repeatedly:
delay(500);
digitalWrite(LED_BUILTIN, HIGH);
Serial.println("Hello from the loop()");
delay(500);
digitalWrite(LED_BUILTIN, LOW);
}
Este Código fiCa loCalizado na pasta: /Users/fernandopassold/Documents/PlatformIO/Projects/ESP32HelloWorld/src/main.pp
. Ele faz parte da árvore:
(base) fernandopassold@MacBook-Pro-de-Fernando Projects % tree
.
└── ESP32HelloWorld
├── include
│ └── README
├── lib
│ └── README
├── platformio.ini
├── src
│ └── main.cpp
└── test
└── README
6 directories, 5 files
(base) fernandopassold@MacBook-Pro-de-Fernando Projects %
Siga as instruções do video para Complilar e enviar o programa para a plaCa:
Control ESP32 from ANYWHERE in the World - Step-By-Step Tutorial de Tomasz Tarnowski (1:48:56)
Getting Started with the ESP32 Development Board | Programming an ESP32 in C/C++ de Low Level Learning (15:22).
Introduction to RTOS Part 1 - What is a Real-Time Operating System (RTOS)? | Digi-Key Electronics da DigiKey (11:33).