From 6075c41624efa8260344dfd4b0c7fa563f4cfe5e Mon Sep 17 00:00:00 2001 From: Julian T Date: Sun, 7 Jun 2020 23:40:14 +0200 Subject: Added solutions for many of the first exercises --- sem4/embedded/emb_m4/emb_m4.ino | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sem4/embedded/emb_m4/emb_m4.ino') diff --git a/sem4/embedded/emb_m4/emb_m4.ino b/sem4/embedded/emb_m4/emb_m4.ino index 179f2b6..7e5ff48 100644 --- a/sem4/embedded/emb_m4/emb_m4.ino +++ b/sem4/embedded/emb_m4/emb_m4.ino @@ -7,8 +7,9 @@ char stk2[STACK]; struct k_t *tsk1, *tsk2; void f1() { - for(;;) { - Serial.println("Haha"); + for(int i = 0;;i++) { + Serial.println(i); + k_sleep(400); } } void f2() { @@ -16,7 +17,7 @@ void f2() { for(;;) { digitalWrite(13, state); state = !state; - k_sleep(1000); + k_sleep(100); } } -- cgit v1.2.3