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

Dependencies:   DOG-S_GraphicLCD mbed

Fork of DOGLCDDemo by Igor Skochinsky

LCD/AbstractLCD.h

Committer:
igorsk
Date:
2010-01-14
Revision:
0:2a5dccfd318f

File content as of revision 0:2a5dccfd318f:

#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