a modified version of N5110 library to be used with freescale boards

Fork of N5110 by francesco fantoni

Files at this revision

API Documentation at this revision

Comitter:
pai2015eminahuskic
Date:
Thu May 14 17:10:24 2015 +0000
Parent:
7:77bd2c73fe41
Commit message:
LV8 Grupa7 Tim008 Zadatak3 Huskic Emina i Dizdarevic Dino

Changed in this revision

N5110.cpp Show annotated file Show diff for this revision Revisions of this file
N5110.h Show annotated file Show diff for this revision Revisions of this file
N5110.o Show diff for this revision Revisions of this file
--- a/N5110.cpp	Thu May 22 21:50:41 2014 +0200
+++ b/N5110.cpp	Thu May 14 17:10:24 2015 +0000
@@ -7,7 +7,7 @@
 #include "mbed.h"
 #include "N5110.h"
 
-
+#define M_PI 3.14
 N5110::N5110(PinName pwrPin, PinName scePin, PinName rstPin, PinName dcPin, PinName mosiPin, PinName sclkPin, PinName ledPin)
 {
     
@@ -317,6 +317,13 @@
     sendData(0); // send an empty byte to introduce space between characters
 
 }
+void N5110::printChar(char c, int x, int y)
+{
+	setXYAddress(x,y);
+	printChar(c);
+	
+}
+    
 
 // function to print 6x7 negative font
 void N5110::printNegChar(char c)
--- a/N5110.h	Thu May 22 21:50:41 2014 +0200
+++ b/N5110.h	Thu May 14 17:10:24 2015 +0000
@@ -162,7 +162,7 @@
     *   @param  c - the character to print. Can print ASCII as so printChar('C').
     */
     void printChar(char c);
-    
+    void printChar(char c, int x, int y);
     void printNegChar(char c);
 
     /** Set a Pixel
Binary file N5110.o has changed