blob: e72befc1ef283aa17ae77dd0cf4e567f471b7661 (
plain)
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
68
69
70
71
72
|
/*
* GraphLCD driver library
*
* sed1520.h - SED1520 driver class
*
* This file is released under the GNU General Public License. Refer
* to the COPYING file distributed with this package.
*
* (c) 2003-2011 Andreas 'randy' Weinberger <vdr AT smue.org>
* (c) 2011 Wolfgang Astleitner <mrwastl AT users.sourceforge.net>
*/
#ifndef _GLCDDRIVERS_SED1520_H_
#define _GLCDDRIVERS_SED1520_H_
#include "driver.h"
namespace GLCD
{
class cDriverConfig;
class cParallelPort;
class cDriverSED1520 : public cDriver
{
private:
cParallelPort * port;
unsigned char ** LCD; // linear lcd display "memory"
unsigned char ** LCD_page; // paged lcd display "memory"
int refreshCounter;
long timeForPortCmdInNs;
bool useSleepInit;
int SEAD;
int SEPA;
int SEDS;
int DION;
int DIOF;
int CS1LO;
int CS2LO;
int CS1HI;
int CS2HI;
int CDHI;
int CDLO;
int LED;
int LEDHI;
int CheckSetup();
int InitGraphic();
void SED1520Cmd(unsigned char data, int cmscd);
void SED1520Data(unsigned char data, int datacs);
public:
cDriverSED1520(cDriverConfig * config);
virtual ~cDriverSED1520();
virtual int Init();
virtual int DeInit();
virtual void Clear();
virtual void SetPixel(int x, int y, uint32_t data);
//virtual void Set8Pixels(int x, int y, unsigned char data);
virtual void Refresh(bool refreshAll = false);
};
} // end of namespace
#endif
|