From 245dc433132e812e2ce3d39c8bb104c07918b263 Mon Sep 17 00:00:00 2001 From: Vasily Davydov Date: Tue, 4 Apr 2023 13:58:56 +0300 Subject: [PATCH] Update README.md --- README.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/README.md b/README.md index 564d38a..1d1fd18 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,38 @@ # SHOH-Innovation-Project Smart Home Oil Heater is a project for Metropolia UAS course called Multidisciplinary Innovation Project. + +Tasks communication: + +Rotary: gets rotation dir --- Master --- Temp Task: gets temp + | + | + | + | + | +Menu Task ------------------------------------------- Heater Task + + + + +common struct: + +typedef struct { + int8_t temp_real; +} sensor_temp ; + +typedef struct { + bool right; + bool press; +} rotary_action ; + +typedef struct { + int8_t set_point; +} user_settings; + + +common struct communication diagram: + +- sensor_temp (Temp Task --> Master --> Menu && Heater) +- rotary_action (Rotary --> Master --> Menu Task) +- user_settings (Menu --> Master --> Heater) +