UniGraphic-Fork for ST7920-LCD-controller and SH1106. Tested with 128x64 LCD with SPI and 128x64-OLED with IIC

Dependents:   UniGraphic-St7920-Test AfficheurUTILECO

Fork of UniGraphic by GraphicsDisplay

Fork of the UniGraphic-Library for monochrome LCDs with ST7920 controller and 128x64-IIC-OLED-Display with SH1106-Controller

/media/uploads/charly/20170522_210344.jpg

/media/uploads/charly/20180425_230623.jpg

Had to adapt LCD for following reasons:

  • Give access to screenbuffer buffer[] to parent class
  • pixel() and pixel_read() as they are hardware-dependent
  • added reset-pin to IIC-Interface

GraphicDisplay:: sends buffer to LCD when auto_update is set to true.

Testprogram for ST7920 can be found here:

https://developer.mbed.org/users/charly/code/UniGraphic-St7920-Test/

Files at this revision

API Documentation at this revision

Comitter:
Rhyme
Date:
Fri Apr 01 06:00:02 2016 +0000
Parent:
30:87855d03d91a
Child:
32:9cd6227dc7a6
Commit message:
The width and height of SEPS225 are 0x80, but I mistook it to 0x7F in the first version and have fixed them in later version, but in the newest version we had the return of 0x7F, so I try to fix them to 0x80 again.

Changed in this revision

Inits/SEPS225.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Inits/SEPS225.cpp	Sun Nov 29 19:58:47 2015 +0000
+++ b/Inits/SEPS225.cpp	Fri Apr 01 06:00:02 2016 +0000
@@ -75,8 +75,8 @@
 #define COLOR_BLACK   0x0000
 #define COLOR_WHITE   0xFFFF
 
-#define OLED_WIDTH   0x7F
-#define OLED_HEIGHT  0x7F
+#define OLED_WIDTH   0x80
+#define OLED_HEIGHT  0x80
 
 #endif /* OLED_LCD_REG_H_ */