Chinese module HY-1.8 SPI TFT lcd Display library.

Dependencies:   BurstSPI

Dependents:   KL25Z_DCF77_HY-1_8LCD

Fork of HY-1_8TFT_ST7735 by Paul Staron

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers GraphicsDisplay.h Source File

GraphicsDisplay.h

00001  //  ST7735 8 Bit SPI Library
00002  
00003 #ifndef MBED_GRAPHICSDISPLAY_H
00004 #define MBED_GRAPHICSDISPLAY_H
00005 
00006 #include "TextDisplay.h"
00007 
00008 class GraphicsDisplay : public TextDisplay {
00009 
00010 public:         
00011           
00012     GraphicsDisplay(const char* name);
00013      
00014     virtual void pixel(int x, int y, int colour) = 0;
00015     virtual int width() = 0;
00016     virtual int height() = 0;
00017         
00018     virtual void gwindow(int x, int y, int w, int h);
00019     virtual void putp(int colour);
00020     
00021     virtual void cls();
00022     virtual void fill(int x, int y, int w, int h, int colour);
00023     virtual void blit(int x, int y, int w, int h, const int *colour);    
00024     virtual void blitbit(int x, int y, int w, int h, const char* colour);
00025     
00026     virtual void character(int column, int row, int value);
00027     virtual int columns();
00028     virtual int rows();
00029     
00030 protected:
00031 
00032     // pixel location
00033     short _x;
00034     short _y;
00035     
00036     // window location
00037     short _x1;
00038     short _x2;
00039     short _y1;
00040     short _y2;
00041 
00042 };
00043 
00044 #endif