\usepackage{listings} \usepackage{xcolor} \lstset{ % General setup for the package language=C, basicstyle=\footnotesize\ttfamily, numbers=left, numberstyle=\small, frame=tb, tabsize=4, columns=fixed, showstringspaces=false, showtabs=false, keepspaces, commentstyle=\color{gray}, keywordstyle=\color{blue} } \lstinputlisting[linerange={41-51}]{week4-4.ino} \begin{lstlisting} \end{lstlisting}