thermferm/lcd-pcf8574.c

changeset 223
14700edd2a67
parent 213
2317b8d644fa
child 420
644a6106d712
--- a/thermferm/lcd-pcf8574.c	Tue Aug 12 12:49:26 2014 +0200
+++ b/thermferm/lcd-pcf8574.c	Tue Aug 12 13:09:50 2014 +0200
@@ -30,7 +30,6 @@
 #ifdef HAVE_WIRINGPI_H
 
 int			lcdHandle;
-unsigned char		lcdbuf[MAX_LCDS][21][4];
 
 struct lcdDataStruct
 {
@@ -46,13 +45,6 @@
 
 
 /*
- * Some LCD functions are extended shadow copies of the wiringPi functions.
- * The difference is that the lcdbuf will be updated with the contents on
- * the hardware display. This copy can then be used for a remote display
- */
-
-
-/*
  * setBacklight:
  *********************************************************************************
  */
@@ -72,8 +64,6 @@
 
 int initLCD (int cols, int rows)
 {
-    int	x, y;
-
     if (!((rows == 1) || (rows == 2) || (rows == 4))) {
     	fprintf (stderr, "rows must be 1, 2 or 4\n") ;
     	return EXIT_FAILURE ;
@@ -98,50 +88,10 @@
     }
 
     lcdClear (lcdHandle) ;
-    for (x = 0; x < Config.lcd_cols; x++)
-	for (y = 0; y < Config.lcd_rows; y++)
-	    lcdbuf[lcdHandle][x][y] = ' ';
-
     setBacklight (1) ;
 
     return 0 ;
 }
 
 
-
-void mb_lcdPutchar(const int fd, unsigned char data)
-{
-    struct lcdDataStruct *lcd = lcds[fd];
-
-    /*
-     * Write to our buffer first, then to the wiringPi driver.
-     * Writing to wiringPi updates the cursor position.
-     */
-    lcdbuf[fd][lcd->cx][lcd->cy] = data;
-    lcdPutchar(fd, data);
-}
-
-
-
-void mb_lcdPuts(const int fd, const char *string)
-{
-    while (*string)
-	mb_lcdPutchar (fd, *string++);
-}
-
-
-
-void mb_lcdClear(const int fd)
-{
-    int	x, y;
-
-    lcdClear(fd);
-    for (x = 0; x < Config.lcd_cols; x++)
-	for (y = 0; y < Config.lcd_rows; y++)
-	    lcdbuf[fd][x][y] = ' ';
-}
-
-
-
 #endif
-

mercurial