@startuml
start
partition init {
:setup serial connection;
:print "ready";
}
while (repeat every few millisecond)
partition loop {
:resolve currentSecond;
if (currentSecond < 50 ?) equals (yes) then
:print "good";
else (no)
:print "bad";
endif
:wait 1s;
}
endwhile
-[hidden]->
kill
@enduml