This includes all known improvements from other people's spins on the Nokia library, including Alistair Popple's fix to the very poor contrast on newer LCD 6100 displays.

Fork of NokiaLCD by Iftekhar Choudhury

Revision:
4:0a17a8a82c4c
Parent:
2:2d1b23692cbb
--- a/NokiaLCD.h	Tue Mar 05 18:52:17 2013 +0000
+++ b/NokiaLCD.h	Sun Jan 26 23:10:31 2014 +0000
@@ -56,7 +56,7 @@
      * @param rst Reset (DigitalOut)
      * @param type The LCDType to select driver chip variants
      */
-    NokiaLCD(PinName mosi, PinName sclk, PinName cs, PinName rst, LCDType type = LCD6100);
+    NokiaLCD(PinName mosi, PinName sclk, PinName cs, PinName rst, LCDType type = LCD6100, int contrast = 39);
 
 #if DOXYGEN_ONLY
     /** Write a character to the LCD
@@ -100,6 +100,8 @@
      * @param colour 24-bit colour in format 0x00RRGGBB
      */    
     void fill(int x, int y, int width, int height, int colour);
+    void circle(int x0, int y0, int r, int colour);                 // Added this to create circles easy. 
+    void line(int x0, int y0, int x1, int y1, int colour);          // Added this to create lines easy. 
 
     void blit(int x, int y, int width, int height, const int* colour);
     void bitblit(int x, int y, int width, int height, const char* bitstream);
@@ -109,7 +111,7 @@
     int columns();
     int rows();
 
-    void reset();
+    void reset(int contrast);
 
     /** Set the foreground colour
      * 
@@ -122,7 +124,12 @@
      * @param c 24-bit colour
      */
     void background(int c);
-
+    
+    /** Move to the next line
+     *
+     */
+    void newline();
+    
 protected:
     virtual void _window(int x, int y, int width, int height);
     virtual void _putp(int colour);
@@ -130,7 +137,6 @@
     void command(int value);
     void data(int value);
 
-    void newline();
     virtual int _putc(int c);
     virtual int _getc() {
         return 0;