SSD1331 Oled driver library for 96x64 colour Oled display. Demo included in .h file
Dependents: Oled-SSD1331 PJ12_device
Diff: ssd1331.h
- Revision:
- 5:4385fd242db0
- Parent:
- 4:062b4708eb35
diff -r 062b4708eb35 -r 4385fd242db0 ssd1331.h
--- a/ssd1331.h Wed May 18 22:16:21 2016 +0000
+++ b/ssd1331.h Sun May 29 17:59:51 2016 +0000
@@ -149,7 +149,8 @@
public:
// constructor
ssd1331(PinName cs_pin, PinName rst_pin, PinName a0_pin, PinName mosi_pin, PinName miso_pin, PinName sclk_pin);
-
+
+ void Init(void);
void pixel(uint8_t x,uint8_t y, uint16_t color); // place a pixel x,y coordinates, color
void rect(uint8_t x1,uint8_t y1,uint8_t x2,uint8_t y2,uint16_t colorline); // draw rectangle, start x,y end x,y, color
void fillrect(uint8_t x1,uint8_t y1,uint8_t x2,uint8_t y2,uint16_t colorline,uint16_t colorfill); // fill rectangle start x,y, end x,y, outline color, fill color.
@@ -192,7 +193,6 @@
virtual int _putc(int c);
virtual int _getc();
private:
- void Init(void);
void RegWrite(unsigned char Command);
void RegWriteM(unsigned char *Command, uint8_t count);
void DataWrite(unsigned char c);
Display Module .95" 96x64 Oled with SPI interface