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:
3:9808f63fd2fe
Parent:
1:51961974fe55
Child:
4:90dce6032a37
--- a/N3310LCD.h	Fri Mar 15 08:01:22 2013 +0000
+++ b/N3310LCD.h	Sun Mar 24 15:15:08 2013 +0000
@@ -35,6 +35,8 @@
 #define PIXEL_OFF 0
 #define PIXEL_ON  1
 #define PIXEL_XOR 2
+#define FONT_5x7  0
+#define FONT_6x8  1
 
 class N3310LCD
 {
@@ -45,11 +47,13 @@
     void init();
     void cls();
     void backlight(eBacklight state);
-    void write(BYTE data, eRequestType req_type);
+    void writeCommand(BYTE data);
+    void writeData(BYTE data);
     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 setFont(BYTE font );
     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);