From 9908758edc128041b98939492b8bc15cf2176561 Mon Sep 17 00:00:00 2001 From: Jonas Arnold Date: Thu, 1 Jun 2023 15:08:00 +0200 Subject: [PATCH] changed blinky --- ASYD_Trends/ASYD_tinyK22_Blinky/source/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ASYD_Trends/ASYD_tinyK22_Blinky/source/main.c b/ASYD_Trends/ASYD_tinyK22_Blinky/source/main.c index 352e0ec..eabe72d 100644 --- a/ASYD_Trends/ASYD_tinyK22_Blinky/source/main.c +++ b/ASYD_Trends/ASYD_tinyK22_Blinky/source/main.c @@ -26,7 +26,8 @@ static McuBtn_Handle_t button; #if McuLib_CONFIG_SDK_USE_FREERTOS static void blinkyTask(void *pv) { for(;;) { - vTaskDelay(pdMS_TO_TICKS(10)); + McuLED_Toggle(tinyLED); + vTaskDelay(pdMS_TO_TICKS(1000)); } } #endif @@ -98,7 +99,7 @@ int main(void) { PRINTF("Hello World\n"); #if McuLib_CONFIG_SDK_USE_FREERTOS - if (xTaskCreate(blinkyTask, "blinky", 1000/sizeof(StackType_t), NULL, tskIDLE_PRIORITY, NULL)!=pdPASS) { + if (xTaskCreate(blinkyTask, "blinky", 500/sizeof(StackType_t), NULL, tskIDLE_PRIORITY, NULL)!=pdPASS) { for(;;) {} } vTaskStartScheduler();