Library for Nuelectronics Nokia 3310/5110 LCD Display and joystick.

Dependents:   LEDFun NetTester

Fork of N3310LCD by Andrew Lindsay

Library for Nuelectronics Nokia 3310/5110 LCD Display and joystick.

Revision:
1:51961974fe55
Parent:
0:7efa6655d94b
Child:
3:9808f63fd2fe
--- a/N3310LCD.h	Sun Mar 10 18:15:25 2013 +0000
+++ b/N3310LCD.h	Sun Mar 10 18:29:09 2013 +0000
@@ -13,7 +13,7 @@
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
-* 
+*
 * N3310LCD is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
@@ -39,35 +39,35 @@
 class N3310LCD
 {
 public:
-    N3310LCD(PinName mosi, PinName miso, PinName sck, 
+    N3310LCD(PinName mosi, PinName miso, PinName sck,
              PinName ce, PinName dat_cmd, PinName lcd_rst, PinName bl_on);
-    
+
     void init();
     void cls();
     void backlight(eBacklight state);
-    void write(BYTE data, eRequestType req_type);   
+    void write(BYTE data, eRequestType req_type);
     void locate(BYTE xPos, BYTE yPos);
-    
+
     void drawBitmap(BYTE xPos, BYTE yPos, BYTE* bitmap, BYTE bmpXSize, BYTE bmpYSize);
     void clearBitmap(BYTE xPos,BYTE yPos, BYTE size_x, BYTE size_y);
-    void writeString(BYTE xPos, BYTE yPos, char* string, eDisplayMode mode);                  
+    void writeString(BYTE xPos, BYTE yPos, char* string, eDisplayMode mode);
     void writeStringBig(BYTE xPos, BYTE yPos, char* string, eDisplayMode mode);
     void writeChar(BYTE ch, eDisplayMode mode);
     void writeCharBig(BYTE xPos, BYTE yPos, BYTE ch, eDisplayMode mode);
-    
-        void setPixel( BYTE x, BYTE y, BYTE c );
+
+    void setPixel( BYTE x, BYTE y, BYTE c );
     void drawLine(BYTE x1, BYTE y1, BYTE x2, BYTE y2, BYTE c);
     void drawRectangle(BYTE x1, BYTE y1,BYTE x2, BYTE y2, BYTE c);
     void drawFilledRectangle(BYTE x1, BYTE y1, BYTE x2, BYTE y2, BYTE c);
     void drawCircle(BYTE xc, BYTE yc, BYTE r, BYTE c);
-            
+
 private:
     // I/O
     SPI lcdPort;            // does SPI MOSI, MISO and SCK
     DigitalOut ceWire;      // does SPI CE
     DigitalOut dcWire;      // does 3310 DAT_CMD
     DigitalOut rstWire;     // does 3310 LCD_RST
-    DigitalOut blWire;      // does 3310 BL_ON (backlight)    
+    DigitalOut blWire;      // does 3310 BL_ON (backlight)
 };
 
 #endif
\ No newline at end of file