graphlcd-base/glcddrivers/simlcd.h
author root@rika
Wed, 06 Feb 2008 17:32:55 +0000
changeset 4 df6a40031aa5
permissions -rw-r--r--
added graphlcd-base
root@4
     1
/*
root@4
     2
 * GraphLCD driver library
root@4
     3
 *
root@4
     4
 * simlcd.h  -  SimLCD driver class
root@4
     5
 *              Output goes to a file instead of lcd.
root@4
     6
 *              Use SimLCD tool to view this file.
root@4
     7
 *
root@4
     8
 * This file is released under the GNU General Public License. Refer
root@4
     9
 * to the COPYING file distributed with this package.
root@4
    10
 *
root@4
    11
 * (c) 2001-2004 Carsten Siebholz <c.siebholz AT t-online.de>
root@4
    12
 */
root@4
    13
root@4
    14
#ifndef _GLCDDRIVERS_SIMLCD_H_
root@4
    15
#define _GLCDDRIVERS_SIMLCD_H_
root@4
    16
root@4
    17
#include "driver.h"
root@4
    18
root@4
    19
root@4
    20
namespace GLCD
root@4
    21
{
root@4
    22
root@4
    23
class cDriverConfig;
root@4
    24
root@4
    25
class cDriverSimLCD : public cDriver
root@4
    26
{
root@4
    27
private:
root@4
    28
    unsigned char ** LCD;
root@4
    29
    cDriverConfig * config;
root@4
    30
    cDriverConfig * oldConfig;
root@4
    31
root@4
    32
    int CheckSetup();
root@4
    33
root@4
    34
public:
root@4
    35
    cDriverSimLCD(cDriverConfig * config);
root@4
    36
    virtual ~cDriverSimLCD();
root@4
    37
root@4
    38
    virtual int Init();
root@4
    39
    virtual int DeInit();
root@4
    40
root@4
    41
    virtual void Clear();
root@4
    42
    virtual void Set8Pixels(int x, int y, unsigned char data);
root@4
    43
    virtual void Refresh(bool refreshAll = false);
root@4
    44
};
root@4
    45
root@4
    46
} // end of namespace
root@4
    47
root@4
    48
#endif