AlphaLCD helper for Arduino  1.0.4
LCD helper example for Arduino with AlphaLCD and Streaming library
 All Classes Files Functions Variables Macros
LCD.h
Go to the documentation of this file.
1 
8 #ifndef __LCD_H__
9 #define __LCD_H__
10 
11 #include <inttypes.h>
12 #include <Print.h>
13 #include <AlphaLCD.h>
14 #include <Streaming.h>
15 
18 #define LCDclockPin 2
19 #define LCDlatchPin 3
22 #define LCDdataPin 4
25 #define LCDCHARS 16
28 #define LCDROWS 2
30 #define LCDTOPROW 0
32 #define LCDBOTTOMROW 1
34 #define LCD_SECTOR1 0
36 #define LCD_SECTOR2 LCDCHARS / 2
38 #define LCD_SECTOR3 0
40 #define LCD_SECTOR4 LCDCHARS / 2
42 
44 #define LCDERROR_DELAY 3000
45 #define LCDMESSAGE_DELAY 2000
47 #define LCDCLEAR_DELAY 100
49 
56 class LCD: public AlphaLCD {
57 //variables
58 public:
59 protected:
60 private:
61  AlphaLCD lcd;
62 
63 //functions
64 public:
65  LCD();
66  ~LCD();
67  void enable(bool s);
68  void blink(bool set);
69  void error(String m);
70  void error(String m, int x, int y);
71  void message(String m);
72  void message(String m, int x, int y);
73  void clean();
74  void dec(int n);
75  void hex(int n);
76  void bin(int n);
77  void oct(int n);
78  void welcome();
79  void menu(String sect1, String sect2, String sect3, String sect4);
80 protected:
81 private:
82  LCD( const LCD &c );
83  LCD& operator=( const LCD &c );
84 
85 }; //LCD
86 
87 #endif //__LCD_H__
void enable(bool s)
Set the display on or off.
void welcome()
shows the program welcome message
void message(String m)
shows a string message
Manages the Alphanumeric display for program output messages.
Definition: LCD.h:56
LCD & operator=(const LCD &c)
void bin(int n)
shows an integer in binary format
void clean()
clean the LCD screen
void error(String m)
shows an error message
void blink(bool set)
Set blink mode.
~LCD()
void dec(int n)
shows an integer in decimal format
AlphaLCD lcd
AlphaLCD class inherited instance.
Definition: LCD.h:61
void menu(String sect1, String sect2, String sect3, String sect4)
void hex(int n)
shows an integer in hexadeciaml format
void oct(int n)
shows an integer in octal format