Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

vTaskDelay Don't seem to be working  #17

Copy link
Copy link
Closed
@SocketNet

Description

@SocketNet
Issue body actions
#include <Arduino.h>
#include <STM32FreeRTOS.h>

#define LED PC13

void task(void *pvParameters)
{
  Serial.println("task start");
  for (;;)
  {

    digitalWrite(LED, HIGH);
    vTaskDelay(100);
    digitalWrite(LED, LOW);
    vTaskDelay(100);
  }
}

void setup()
{
  Serial.begin(115200);
  Serial.println("Serial start");
  pinMode(LED, OUTPUT);
  xTaskCreate(task, "task", 128, NULL, 2, NULL);
  vTaskStartScheduler();
}

void loop()
{
  for (int i = 65; i < 91; i++)
  {
    Serial.println((char)i);
    delay(1000);
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requestedFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.