Project

General

Profile

Raspberry PI GPIO Scol plugin
rpilcd.h
1
2#ifndef RPILCD_H
3#define RPILCD_H
4
5#ifdef RPI
6#include "lcd.h"
7#endif
8
9#include <string>
10
11class RpiLCD
12{
13public:
14 RpiLCD();
15 RpiLCD(int rows, int cols, int bits, int rs, int strb, int d0, int d1, int d2, int d3, int d4, int d5, int d6, int d7);
16
17 ~RpiLCD();
18
19 void Home();
20
21 void Clear();
22
23 void DisplayState(int state);
24
25 void CursorState(int state);
26
27 void CursorBlink(int state);
28
29 void SetPosition(int x, int y);
30
31 void Puts(std::string text);
32
33private:
34 int mRs;
35 int mStrb;
36 int mD0;
37 int mD1;
38 int mD2;
39 int mD3;
40 int mD4;
41 int mD5;
42 int mD6;
43 int mD7;
44 int mLcdHandle;
45};
46
47#endif //RPILCD_H