From 30171b5c84dd90ee9de9f3efc395766497a86c85 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Sat, 15 Jun 2024 14:28:21 +0200 Subject: restore arduino compatibility --- puzzle/dummy/main.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'puzzle') diff --git a/puzzle/dummy/main.cpp b/puzzle/dummy/main.cpp index 61c7b5b..3c713d6 100644 --- a/puzzle/dummy/main.cpp +++ b/puzzle/dummy/main.cpp @@ -1,5 +1,4 @@ #include -#include #include #include @@ -9,15 +8,12 @@ const char * PB_MOD_NAME = "dummy"; const i2c_addr_t PB_MOD_ADDR = 0x69; -void testTask() { - while(1) { - vTaskDelay(1000 / portTICK_PERIOD_MS); - Serial.write("Hello world!\r\n"); - } -} - void setup() { Serial.begin(115200); - xTaskCreate((TaskFunction_t) testTask, "test", configMINIMAL_STACK_SIZE, NULL, tskIDLE_PRIORITY + 2, NULL); +} + +void loop() { + Serial.write("Hello world!\r\n"); + vTaskDelay(1000 / portTICK_PERIOD_MS); } -- cgit v1.2.3