Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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 window(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
Generated on Fri Jul 29 2022 11:38:09 by
1.7.2