RobertBerger

Untitled

Sep 20th, 2023
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. /* heartbeat - blinker task */
  2. void vTaskLEDBlinker(void *pvParameters) {
  3. const char *pcTaskName = "vTaskLEDBlinker is running\n";
  4. //led_red_init();
  5. for (;;) {
  6. /* vPrintString(pcTaskName); */
  7. led_red_invert();
  8. vTaskDelay(500 / portTICK_RATE_MS);
  9. led_red_invert();
  10. led_green_invert();
  11. vTaskDelay(500 / portTICK_RATE_MS);
  12. led_green_invert();
  13. led_blue_invert();
  14. vTaskDelay(500 / portTICK_RATE_MS);
  15. led_blue_invert();
  16. }
  17. }
Add Comment
Please, Sign In to add comment