Library for interfacing to Nokia 5110 LCD display (as found on the SparkFun website).

Dependents:   LV7_LCDtest LV7_Grupa5_Tim003_Zadatak1 lv7_Grupa5_Tim008_zad1 LV7_PAI_Grupa5_tim10_Zadatak1 ... more

This library is designed to make it easy to interface an mbed with a Nokia 5110 LCD display.

These can be found at Sparkfun (https://www.sparkfun.com/products/10168) and Adafruit (http://www.adafruit.com/product/338).

The library uses the SPI peripheral on the mbed which means it is much faster sending data to the display than other libraries available on other platforms that use software SPI.

The library can print strings as well as controlling individual pixels, meaning that both text and primitive graphics can be displayed.

Files at this revision

API Documentation at this revision

Comitter:
eencae
Date:
Wed Jan 22 13:17:33 2020 +0000
Parent:
50:e73cd097fdcb
Commit message:
Undo overloaded constructor

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
diff -r e73cd097fdcb -r 32f9ffeafb6d N5110.cpp
--- a/N5110.cpp	Wed Jan 22 12:50:25 2020 +0000
+++ b/N5110.cpp	Wed Jan 22 13:17:33 2020 +0000
@@ -38,17 +38,6 @@
     _dc(new DigitalOut(dcPin))
 {}
 
-// Second overload contructor uses the New Gamepad (Rev 2.1) pin mappings
-N5110::N5110()
-    :
-    _spi(new SPI(PTD2,NC,PTD1)), // create new SPI instance and initialise
-    _led(new DigitalOut(PTB23)),
-    _pwr(NULL), // pwr not needed so null it to be safe
-    _sce(new DigitalOut(PTB19)),
-    _rst(new DigitalOut(PTC1)),
-    _dc(new DigitalOut(PTB18))
-{}
-
 N5110::~N5110()
 {
     delete _spi;
diff -r e73cd097fdcb -r 32f9ffeafb6d N5110.h
--- a/N5110.h	Wed Jan 22 12:50:25 2020 +0000
+++ b/N5110.h	Wed Jan 22 13:17:33 2020 +0000
@@ -227,10 +227,6 @@
           PinName const sclkPin,
           PinName const ledPin);
 
-    /** Creates a N5110 object with the New Gamepad (Rev 2.1) pin mapping
-    */
-    N5110();
-    
     /**
      * Free allocated memory when object goes out of scope
      */