X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=appx%2Fmtask_aux.tex;h=220053ae38823473947ab203ee788a09106e9a0d;hb=5702796e5885e85b9e8dcc0d5160dccb9386b05f;hp=74273a49d6841124ac3bb721796b85fd8ea4389b;hpb=27d1d51bf3f3acc08c002a5d58af6a4f4332e3f8;p=phd-thesis.git diff --git a/appx/mtask_aux.tex b/appx/mtask_aux.tex index 74273a4..220053a 100644 --- a/appx/mtask_aux.tex +++ b/appx/mtask_aux.tex @@ -2,12 +2,10 @@ \input{subfilepreamble} -\setcounter{chapter}{1} - \begin{document} \input{subfileprefix} -\ifSubfilesClassLoaded{\appendix}{} -\chapter{Auxiliary \texorpdfstring{\glsentrytext{MTASK}}{mTask} type classes}% +\ifSubfilesClassLoaded{\appendix\setcounter{chapter}{1}}{} +\chapter{Auxiliary mTask type classes}% \label{chp:mtask_aux} \lstset{basicstyle=\tt\footnotesize} \section{Peripherals}\label{sec:aux_peripherals} @@ -98,7 +96,7 @@ where soundLevel :: (v SoundDetector) -> MTask v Bool | tupl, aio v \end{lstClean} -\subsection{\texorpdfstring{\gls{I2C}}{I\textsuperscript{2}C} buttons} +\subsection{\IIC{} buttons} The \gls{MTASK} language supports one type of \gls{I2C} buttons (the \gls{I2C} buttons from the \gls{WEMOS} d1 mini \gls{OLED} shield). The buttons from this shield provide more information than just the status (see \cleaninline{ButtonStatus}). The complete interface containing the constructor and the measurement tasks is shown in \cref{lst:mtask_i2cbutton}. @@ -117,7 +115,7 @@ class i2cbutton v where BButton :: (v I2CButton) -> MTask v ButtonStatus \end{lstClean} -\subsection{\texorpdfstring{\gls{LED}}{LED} matrix} +\subsection{LED matrix} The \gls{MTASK} language supports one type of \gls{LED} matrix (the $8\times8$ \gls{LED} matrix shield for the \gls{WEMOS} d1 mini). Instead of containing a \gls{TOP}-like interface, the \gls{ARDUINO} interface is directly translated to \gls{MTASK}. As a result, every task immediately returns a stable value indicating the result.