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
Fork of the UniGraphic-Library for monochrome LCDs with ST7920 controller and 128x64-IIC-OLED-Display with SH1106-Controller
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/
Diff: Display/LCD.cpp
- Revision:
- 18:ffa58f1a680a
- Parent:
- 7:bb0383b91104
- Child:
- 20:14daa48ffd4c
--- a/Display/LCD.cpp Mon Feb 23 23:36:22 2015 +0000 +++ b/Display/LCD.cpp Mon Mar 02 10:35:41 2015 +0000 @@ -278,7 +278,7 @@ // wr_cmd8(0x10|(col_offset>>4)); // set column hi nibble wr_cmd16(setcolcmd); wr_cmd8(0xB0|(page+page_offset)); // set page - wr_gram(tmp, screensize_X>>1); // send whole page pixels =0 + wr_gram(tmp, screensize_X>>1); // send whole page pixels = background } } int LCD::sizeX()