Extended library from C12832 Lib. by Peter Drescher, Chris Styles & Mihail Stoyanov. LCD in the market such as AQM1248A (Akizuki), AD-12864-SPI (antendo), NHD-C12832 (Newhaven), ST7565 (adafruit) and so on
Dependents: CW_Decoder_using_FFT_on_F446 LPC1114_SPI_LCD_ST7565family_test
Fork of C12832 by
Original library is below link.
http://mbed.org/teams/components/code/C12832/
https://mbed.org/users/dreschpe/code/C12832_lcd/
I extended applicable LCD's not only 128 x 32 but also 128 x 48 and 128 x 64 type of SPI LCD using ST7565 controller.
I have checked AD-12864-SPI and AQM1248 LCD.
Import programLPC1114_SPI_LCD_ST7565family_test
Controller chip is ST7565
Diff: ST7565_SPI_LCD.cpp
- Revision:
- 22:7d03976a0cb3
- Parent:
- 20:5b329c2a1ffe
- Child:
- 23:233a0d635d9d
diff -r a1fc999cd8f3 -r 7d03976a0cb3 ST7565_SPI_LCD.cpp --- a/ST7565_SPI_LCD.cpp Mon Dec 01 22:21:04 2014 +0000 +++ b/ST7565_SPI_LCD.cpp Sat Dec 13 05:29:11 2014 +0000 @@ -4,7 +4,7 @@ http://www.page.sannet.ne.jp/kenjia/index.html http://mbed.org/users/kenjiArai/ Started: September 20th, 2014 - Revised: September 21st, 2014 + Revised: December 13th, 2014 original file: C12832.cpp original Library name: C12832 @@ -113,6 +113,7 @@ void ST7565::set_contrast(unsigned int o){ contrast = o; + wr_cmd(0x23); // Vo voltage reg. wr_cmd(0x81); // set volume wr_cmd(o & 0x3F); }