Adafruit ssd1331 OLED 96x64 SPI model
Fork of OledLib by
Diff: spioled96x64.h
- Revision:
- 4:b68843c0269c
- Parent:
- 2:e331851128c1
- Child:
- 6:7c25a9403243
--- a/spioled96x64.h Wed Jan 12 07:54:58 2011 +0000 +++ b/spioled96x64.h Fri Jan 14 02:49:09 2011 +0000 @@ -9,6 +9,8 @@ #include "ascii_font6x8.h" #include "small_font.h" +//#define __USE_GAC__ // use SSD1331/1332 Graphi Accelaration Command + #define Dis_X_MAX 96-1 // Max X axial direction in screen #define Dis_Y_MAX 64-1 // Max Y axial direction in screen #define X_WitchASC 6 // character's width @@ -21,6 +23,17 @@ #define CS_WH 3 #define CS_WHx36 4 + + +#define GAC_FILL_ENABLE_DISABLE 0x26 // 塗りつぶし可否コマンド +#define GAC_DRAW_RECTANGLE 0x22 // Rectangle cmd +/* +#define GAC_COPY_AREA 0x23 // Copy Area +#define GAC_SCROLL_SETUP 0x27 +#define GAC_SCROLL_STOP 0x2E +#define GAC_SCROLL_START 0x2F +*/ + class SPIOLED96x64 : public Stream { public: // constructor @@ -52,6 +65,12 @@ void line( int x0,int y0,int x1,int y1, unsigned int fore_col ,int pat ); void circle (int radius, int x, int y , unsigned int col, int fill); void Pattern(int x,int y,int width, int height, unsigned int *p); + void GACEnable(int enable); + /* + void Copy(int src_x1,int src_y1,int src_x2,int src_y2, int dst_x,int dst_y); + void ScrollSet(int a, int b, int c, int d , int frame_interval); + void Scroll(int enable); + */ protected: // Stream implementation functions virtual int _putc( int c ); @@ -62,6 +81,7 @@ unsigned int Char_Color; // character's color unsigned int BGround_Color; + int GAC_Useflag; int x_locate; int y_locate; int chr_size;