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/TFT.h
- Revision:
- 8:26757296c79d
- Parent:
- 7:bb0383b91104
- Child:
- 10:668cf78ff93a
diff -r bb0383b91104 -r 26757296c79d Display/TFT.h --- a/Display/TFT.h Tue Feb 17 11:02:06 2015 +0000 +++ b/Display/TFT.h Tue Feb 17 17:54:14 2015 +0000 @@ -47,10 +47,10 @@ */ virtual void window(int x, int y, int w, int h); - /** Read pixel color at current location + /** Read pixel color at location * @param x is the horizontal offset to this pixel. * @param y is the vertical offset to this pixel. - * @param color defines the color for the pixel. + * @returns 16bit color. */ virtual unsigned short pixelread(int x, int y);