summaryrefslogtreecommitdiff
path: root/glcddrivers/t6963c.c
diff options
context:
space:
mode:
authormrwastl <mrwastl@users.sourceforge.net>2011-09-16 17:59:04 +0200
committermrwastl <mrwastl@users.sourceforge.net>2011-09-16 17:59:04 +0200
commit7178bcc48bc3377c4027e362ba217e9f3815cea5 (patch)
tree8f7cab76d7e5207128da9058b1d1e2d54f5e3a3a /glcddrivers/t6963c.c
parent73ba3e0dd78c96a92e8297e62270bd4e5cd35a44 (diff)
downloadgraphlcd-base-7178bcc48bc3377c4027e362ba217e9f3815cea5.tar.gz
graphlcd-base-7178bcc48bc3377c4027e362ba217e9f3815cea5.tar.bz2
move config/oldConfig + it's initialisation to base class cDriver; libglcddrivers.so no longer link-dependent on libglcdgraphics.so
Diffstat (limited to 'glcddrivers/t6963c.c')
-rw-r--r--glcddrivers/t6963c.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/glcddrivers/t6963c.c b/glcddrivers/t6963c.c
index de3a59f..671d4f3 100644
--- a/glcddrivers/t6963c.c
+++ b/glcddrivers/t6963c.c
@@ -108,10 +108,8 @@ const unsigned char kSerialCDLO = 0x04; //
cDriverT6963C::cDriverT6963C(cDriverConfig * config)
-: config(config)
+: cDriver(config)
{
- oldConfig = new cDriverConfig(*config);
-
port = new cParallelPort();
//width = config->width;
@@ -126,7 +124,6 @@ cDriverT6963C::cDriverT6963C(cDriverConfig * config)
cDriverT6963C::~cDriverT6963C()
{
delete port;
- delete oldConfig;
}
int cDriverT6963C::Init()
@@ -397,7 +394,7 @@ void cDriverT6963C::SetPixel(int x, int y, uint32_t data)
//int cols = (width + 6 - 1 ) / 6;
int col = x / 6;
- if (data == GLCD::cColor::White)
+ if (data == GRAPHLCD_White)
newLCD[col][y] |= (1 << pos);
else
newLCD[col][y] &= ( 0x3F ^ (1 << pos) );
@@ -412,7 +409,7 @@ void cDriverT6963C::SetPixel(int x, int y, uint32_t data)
pos = 7 - pos; // reverse bit position
}
- if (data == GLCD::cColor::White)
+ if (data == GRAPHLCD_White)
newLCD[x / 8][y] |= (1 << pos);
else
newLCD[x / 8][y] &= ( 0xFF ^ (1 << pos) );