This Library for DOGS-102 Graphic LCD module. Based on Igor Skochinsky's "DOGLCDDemo" program.

Dependents:   DOGS102_Example1 DOGS102_Example2

Fork of DOGLCDDemo by Igor Skochinsky

LCD/AbstractLCD.h

Committer:
ban4jp
Date:
2014-05-03
Revision:
1:2145a74df666
Parent:
0:2a5dccfd318f

File content as of revision 1:2145a74df666:

#ifndef MBED_ABSTRACTLCD_H
#define MBED_ABSTRACTLCD_H
 
#include "mbed.h"

/* Class: AbstractLCD
 *
 */

class AbstractLCD
{
public:
    virtual ~AbstractLCD() {};
    // return LDC width
    virtual int width() = 0;
    // return LDC height
    virtual int height() = 0;
    // put a pixel on the screen
    virtual void pixel(int x, int y, int colour) = 0;
    // fill a rectangular area
    virtual void fill(int x, int y, int width, int height, int colour) = 0;
    // begin an update sequence: 
    // remember drawing operations but do not update the display
    virtual void beginupdate() = 0;
    // end an update sequence
    // update display to reflect all queued operations
    virtual void endupdate() = 0;
};

#endif