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 Components

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.
/media/uploads/kenjiArai/ad-12864-spi_12.png /media/uploads/kenjiArai/aqm12848_2.png

Import programLPC1114_SPI_LCD_ST7565family_test

Controller chip is ST7565

Revision:
21:a1fc999cd8f3
Parent:
19:871eed87d8ea
Child:
23:233a0d635d9d
--- a/ST7565_SPI_LCD.h	Sun Sep 21 10:04:45 2014 +0000
+++ b/ST7565_SPI_LCD.h	Mon Dec 01 22:21:04 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: November  29th, 2014
 
     original file: C12832.h
     original Library name: C12832
@@ -31,16 +31,6 @@
 #include "mbed.h"
 #include "GraphicsDisplay.h"
 
-/** Draw color
-  */
-enum {WHITE = 0,BLACK};
-
-/** Draw mode
-  * NORMAl
-  * XOR set pixel by xor the screen
-  */
-enum {NORMAL,XOR};
-
 /** Bitmap
  */
 struct Bitmap{
@@ -297,6 +287,16 @@
     unsigned int draw_mode;
 
 protected:
+    /** Draw color
+      */
+    enum {WHITE = 0,BLACK};
+    
+    /** Draw mode
+      * NORMAl
+      * XOR set pixel by xor the screen
+      */
+    enum {NORMAL,XOR};
+    
     /** Vars     */
     SPI _spi;
     DigitalOut _reset;