Advertisement
RobertBerger

blinker

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