-
Notifications
You must be signed in to change notification settings - Fork 24
/
LCDShield.h
67 lines (53 loc) · 1.2 KB
/
LCDShield.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
Project: 1Sheeld Library
File: LCDShield.h
Version: 1.2
Compiler: Arduino avr-gcc 4.3.2
Author: Integreight
Date: 2014.5
*/
#ifndef LCDShield_h
#define LCDShield_h
#include "ShieldParent.h"
#include "OneSheeldPrint.h"
//Output Functions ID's
#define LCD_BEGIN 0x01
#define LCD_CLEAR 0x02
#define LCD_HOME 0x03
#define LCD_NOBLINK 0x04
#define LCD_BLINK 0x05
#define LCD_NOCURSOR 0x06
#define LCD_CURSOR 0x07
#define LCD_SCROLLLEFT 0x08
#define LCD_SCROLLRIGHT 0x09
#define LCD_LEFT_RIGHT 0x0A
#define LCD_RIGHT_LEFT 0x0B
#define LCD_AUTOSCROLL 0x0C
#define LCD_NOAUTOSCROLL 0x0D
#define LCD_SETCURSOR 0x0E
#define LCD_WRITE 0x0F
#define LCD_PRINT 0x11
class LCDShield : public PrintClass , public ShieldParent
{
public:
LCDShield();
//Setters
void begin();
void clear();
void home();
void noBlink();
void blink();
void noCursor();
void cursor();
void scrollDisplayLeft();
void scrollDisplayRight();
void leftToRight();
void rightToLeft();
void autoScroll();
void noAutoScroll();
void setCursor(byte,byte);
private:
};
//Extern Object
extern LCDShield LCD;
#endif