repositories
/
msc-thesis1617.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
elaborate on shares and not the split between sds and sdspub
[msc-thesis1617.git]
/
methods.mtask.tex
diff --git
a/methods.mtask.tex
b/methods.mtask.tex
index
1662d6d
..
df05035
100644
(file)
--- a/
methods.mtask.tex
+++ b/
methods.mtask.tex
@@
-211,7
+211,7
@@
blink = task \blink=(\x.
thermostat :: Main (View () Stmt)
thermostat = {main =
thermostat :: Main (View () Stmt)
thermostat = {main =
- IF (analogRead A0 >. 50)
+ IF (analogRead A0 >.
lit
50)
( digitalWrite D0 (lit True) )
( digitalWrite D0 (lit False) )
}
( digitalWrite D0 (lit True) )
( digitalWrite D0 (lit False) )
}
@@
-219,5
+219,5
@@
thermostat = {main =
thermostat` :: Main (View () Stmt)
thermostat` = let
a0 = aIO A0
thermostat` :: Main (View () Stmt)
thermostat` = let
a0 = aIO A0
- d0 = dIO D0 in {main = IF (a0 >. 50) (d0 =. lit True) (d0 =. lit False) }
+ d0 = dIO D0 in {main = IF (a0 >.
lit
50) (d0 =. lit True) (d0 =. lit False) }
\end{lstlisting}
\end{lstlisting}