\begin{lstlisting}[language=Clean]
blink :: Task ()
blink = makeDevice "stm32" stm32 >>= connectDevice
- >>= \stm-> sendTaskToDevice "blink" blinkTask (stm32, OnInterval 1000)
+ >>= \stm-> sendTaskToDevice "blink" blinkTask (stm, OnInterval 1000)
>>= \(st, [t:_])->forever (
updateSharedInformation "Which led to blink" [] (shareShare stm t)
) >>* [OnAction (Action "Shutdown") $ always
where
stm32 = makeDevice "Stm32"
(SerialDevice {devicePath="/dev/ttyUSB0", baudrate=B9600, ...}
- blinkTask = sds \led=LED0 In sds \x=True In
+ blinkTask = sds \led=LED1 In sds \x=True In
{main = IF x (ledOff led) (ledOn led) :. x =. Not x }
\end{lstlisting}