12 Commits

Author SHA1 Message Date
RedHawk
2b02a786fa Menu & UI: [#25, #35] Fixed UI.
*String in Menu are static. Temperature is limited by -99 and 99 bounds.
*UserInterface cleaned a bit.
2023-05-10 13:11:41 +03:00
RedHawk
ea1139567a UI: [#35] Fixing issues.
*Send UserInterface::InterfaceWithData in the queue instead of Event.
*Remove pointer madness for LCD.
*Timeout for Idle Event from Master thread.
2023-05-09 01:14:47 +03:00
RedHawk
f0bbfb22ab Menu & UI: [#25, #35]Communication between these tasks.
* The code is a mess for now. I'm not sure if there is any reason to
send a whole event to UI, it's better to send InterfaceWithData.
* Sending to queue from Menu isn't great as well.
2023-05-08 16:09:31 +03:00
RedHawk
d3f5cdebbc menu: [#25] Made states. Moved logic to Menu.
*Menu class now is responsible for the whole logic with
temperature and set_point.
*void NotifyAndRefreshUI (const char *str) is a placeholder
for sending a string value on a queue to UI task,
which will handle the lcd screen.
*Added error return value to Manager::parseEvent(Event* e)
2023-05-08 13:08:01 +03:00
Vasily Davydov
fad70c9f37 menu: [#25] rename event to state 2023-05-07 17:45:23 +03:00
Vasily Davydov
bd2f6b32f1 menu: [#25] fix warnings and add assertions 2023-05-07 17:45:23 +03:00
vas-dav
83de15ce5b menu: [#25] handle eventpair with rotary 2023-05-07 17:45:23 +03:00
Vasily Davydov
01855e2f52 manager: [#25] menu class init 2023-05-07 17:45:23 +03:00
Vasily Davydov
df6411c76b manager: [#25] add Counter template for set_point 2023-05-07 17:45:23 +03:00
Vasily Davydov
a2b07be73b manager: [#25] add Event parser 2023-05-07 17:45:23 +03:00
Vasily Davydov
e003820710 manager: [#25] listen on master 2023-05-07 17:45:23 +03:00
Vasily Davydov
ddc9be976a manager: [#25] init simple task 2023-05-07 17:45:23 +03:00