void task1(void *pt) {
pinMode(12, OUTPUT);
while(1) {
digitalWrite(12, !digitalRead(12));
vTaskDelay(800);
}
}
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
xTaskCreate(task1, "LED BLINK", 1024, NULL, 1, NULL);
}
void loop() {
}