#if CONFIG_FREERTOS_UNICORE
static const BaseType_t app_cpu =0;
#else
static const BaseType_t app_cpu=1;
#endif
static const int led_pin=0;
void setup(){
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
pinMode(led_pin, OUTPUT);
xTaskCreatePinnedToCore(
toggleLED,
"Toggle LED",
1024,
NULL,
1,
NULL,
app_cpu);
}
void loop() {
// put your main code here, to run repeatedly:
// delay(10); // this speeds up the simulation
}