From ca8b4d46e15d77bd291f00525eb665a67b681c30 Mon Sep 17 00:00:00 2001 From: Pat Beirne Date: Tue, 28 Jan 2025 12:09:48 -0500 Subject: [PATCH] add up_down.dot --- up_down.dot | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 up_down.dot diff --git a/up_down.dot b/up_down.dot new file mode 100644 index 0000000..31bd636 --- /dev/null +++ b/up_down.dot @@ -0,0 +1,15 @@ +/* UI for up/down counting */ + +digraph { + pad=0.5; bgcolor="lightgrey"; nodesep=1.2; + node [shape="box"; style="filled"; fillcolor="cyan"; ]; + edge [labelfontsize=10; minlen=2; labeldistance=4; ]; + HEAT_IDLE [label="HEAT_IDLE\nLED off";]; + HEAT_SET [label="HEAT_SET\nLED on\nwait for pause";]; + HEAT_IDLE -> HEAT_SET [taillabel="EVT_UP\ninc counter";]; + HEAT_IDLE -> HEAT_SET [taillabel="EVT_DN\ndec counter";]; + HEAT_SET -> HEAT_IDLE [taillabel="EVT_TIMER\nissue 'new_setting' msg"]; + HEAT_SET -> HEAT_SET [taillabel="EVT_UP\ninc counter"; tailport=w; headport=sw;]; + HEAT_SET -> HEAT_SET [taillabel="EVT_DN\ndec counter"; tailport=e; headport=se;]; +} +