A demo program for DOGL-128 LCD module. Based on Mike Sheldon's 3D Tie Fighter demo.

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers AbstractLCD.h Source File

AbstractLCD.h

00001 #ifndef MBED_ABSTRACTLCD_H
00002 #define MBED_ABSTRACTLCD_H
00003  
00004 #include "mbed.h"
00005 
00006 /* Class: AbstractLCD
00007  *
00008  */
00009 
00010 class AbstractLCD
00011 {
00012 public:
00013     virtual ~AbstractLCD() {};
00014     // return LDC width
00015     virtual int width() = 0;
00016     // return LDC height
00017     virtual int height() = 0;
00018     // put a pixel on the screen
00019     virtual void pixel(int x, int y, int colour) = 0;
00020     // fill a rectangular area
00021     virtual void fill(int x, int y, int width, int height, int colour) = 0;
00022     // begin an update sequence: 
00023     // remember drawing operations but do not update the display
00024     virtual void beginupdate() = 0;
00025     // end an update sequence
00026     // update display to reflect all queued operations
00027     virtual void endupdate() = 0;
00028 };
00029 
00030 #endif