Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of N5110 by
Revision 8:2993b19ba7dd, committed 2015-05-14
- 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
diff -r 77bd2c73fe41 -r 2993b19ba7dd N5110.cpp --- 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)
diff -r 77bd2c73fe41 -r 2993b19ba7dd N5110.h --- 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
diff -r 77bd2c73fe41 -r 2993b19ba7dd N5110.o Binary file N5110.o has changed