\section{aversive\_\-10-03-12/modules/devices/ihm/lcd/lcd.h File Reference}
\label{lcd_8h}\index{aversive\_\-10-03-12/modules/devices/ihm/lcd/lcd.h@{aversive\_\-10-03-12/modules/devices/ihm/lcd/lcd.h}}
{\tt \#include $<$stdio.h$>$}\par
{\tt \#include $<$aversive.h$>$}\par
{\tt \#include \char`\"{}lcd\_\-protocol.h\char`\"{}}\par
\subsection*{Functions}
\begin{CompactItemize}
\item 
void {\bf lcd\_\-init} (uint8\_\-t dispAttr)
\item 
void {\bf lcd\_\-putc} (char c)
\item 
int {\bf lcd\_\-dev\_\-putc} (char c, FILE $\ast$f)
\item 
void {\bf lcd\_\-gotoxy} (uint8\_\-t x, uint8\_\-t y)
\item 
void {\bf lcd\_\-clrscr} (void)
\end{CompactItemize}


\subsection{Function Documentation}
\index{lcd.h@{lcd.h}!lcd\_\-clrscr@{lcd\_\-clrscr}}
\index{lcd\_\-clrscr@{lcd\_\-clrscr}!lcd.h@{lcd.h}}
\subsubsection[lcd\_\-clrscr]{\setlength{\rightskip}{0pt plus 5cm}void lcd\_\-clrscr (void)}\label{lcd_8h_f8da853dba4b9d5f2aea4e294444e14d}


clear all the screen avoid using this function, escpecially if you use printf 

Definition at line 288 of file lcd.c.

References LCD\_\-CLR, and lcd\_\-command().

Referenced by lcd\_\-init(), and lcd\_\-putc().\index{lcd.h@{lcd.h}!lcd\_\-dev\_\-putc@{lcd\_\-dev\_\-putc}}
\index{lcd\_\-dev\_\-putc@{lcd\_\-dev\_\-putc}!lcd.h@{lcd.h}}
\subsubsection[lcd\_\-dev\_\-putc]{\setlength{\rightskip}{0pt plus 5cm}int lcd\_\-dev\_\-putc (char {\em c}, \/  FILE $\ast$ {\em f})}\label{lcd_8h_ef77b9dc8c9cc88a173e2fb8e3c95132}


same than lcd\_\-putc but with a prototype that is compliant with avrlibc $>$ 1.4.0 fdevopen prototype 

Definition at line 328 of file lcd.c.

References lcd\_\-putc().\index{lcd.h@{lcd.h}!lcd\_\-gotoxy@{lcd\_\-gotoxy}}
\index{lcd\_\-gotoxy@{lcd\_\-gotoxy}!lcd.h@{lcd.h}}
\subsubsection[lcd\_\-gotoxy]{\setlength{\rightskip}{0pt plus 5cm}void lcd\_\-gotoxy (uint8\_\-t {\em x}, \/  uint8\_\-t {\em y})}\label{lcd_8h_dbf47a5efdf02367ded1ebf8f9edb5fe}


move the cursor in the screen, x= line, y = char 

Definition at line 260 of file lcd.c.

References lcd\_\-command(), and LCD\_\-DDRAM.

Referenced by lcd\_\-putc().\index{lcd.h@{lcd.h}!lcd\_\-init@{lcd\_\-init}}
\index{lcd\_\-init@{lcd\_\-init}!lcd.h@{lcd.h}}
\subsubsection[lcd\_\-init]{\setlength{\rightskip}{0pt plus 5cm}void lcd\_\-init (uint8\_\-t {\em dispAttr})}\label{lcd_8h_9af28b2779326b63ff4356e2b1828984}


Init the LCD module 

Definition at line 334 of file lcd.c.

References DDR, initial\_\-8\_\-bit\_\-write(), lcd\_\-clrscr(), lcd\_\-command(), LCD\_\-DISP\_\-OFF, LCD\_\-FUNCTION\_\-4BIT\_\-1LINE, LCD\_\-FUNCTION\_\-8BIT\_\-1LINE, LCD\_\-FUNCTION\_\-DEFAULT, LCD\_\-MODE\_\-DEFAULT, and sbi.\index{lcd.h@{lcd.h}!lcd\_\-putc@{lcd\_\-putc}}
\index{lcd\_\-putc@{lcd\_\-putc}!lcd.h@{lcd.h}}
\subsubsection[lcd\_\-putc]{\setlength{\rightskip}{0pt plus 5cm}void lcd\_\-putc (char {\em c})}\label{lcd_8h_fa7e36b95c43d603f510273ad077cbbe}


Put a char on screen if c = \par
 cursor is positioned on the next line if c =  the screen will be cleared 

Definition at line 304 of file lcd.c.

References lcd\_\-clrscr(), and lcd\_\-gotoxy().

Referenced by lcd\_\-dev\_\-putc().