NYH-workshop
Published © GPL3+

Wemos R32 with Arduino - Startup Guide!

Want to get the most out of ESP32 without a lot of troublesome installation? Try this guide!

IntermediateShowcase (no instructions)1 hour48,853
Wemos R32 with Arduino - Startup Guide!

Things used in this project

Hardware components

Wemos R32
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

R32 Schematics

R32 Schematics

Code

Template code with FreeRTOS for Arduino ESP32.

C/C++
void setup() {
 
  Serial.begin(112500);

  pinMode(2, OUTPUT);
  
  vTaskDelay(1000 / portTICK_PERIOD_MS);
 
  xTaskCreate(task1,"task1", 2048, NULL,1,NULL);
  xTaskCreate(task2,"task2", 2048, NULL,1,NULL); 

}
 
void loop() {
  vTaskDelay(1000 / portTICK_PERIOD_MS);
}
 
void task1( void * parameter )
{
   while(1) {
    Serial.println("Hello World!");
    vTaskDelay(1000 / portTICK_PERIOD_MS);
   }
}
 
void task2( void * parameter)
{
   while(1) {
      digitalWrite(2, HIGH);
      vTaskDelay(500 / portTICK_PERIOD_MS);
      digitalWrite(2, LOW);
      vTaskDelay(500 / portTICK_PERIOD_MS);
   } 
}

Credits

NYH-workshop

NYH-workshop

4 projects • 4 followers
Engineer and hobbyist

Comments