Page 1 of 1

ESP32 Hello World

Posted: Mon Sep 26, 2016 1:39 am
by rudi ;-)

Code: Select all

#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"

void pingTask(void *pvParameters)
{
    while (1) {
        vTaskDelay(1000 / portTICK_PERIOD_MS);
        printf("Hello World!\n");
    }
}

void app_main()
{
    xTaskCreatePinnedToCore(&pingTask, "pingTask", 2048, NULL, 5, NULL, 0);
}

best wishes
rudi ;-)

:mrgreen: