Library for interfacing to Nokia 5110 LCD display (as found on the SparkFun website). Used & amended by D.Leaming, University of Lincoln, December 2021 v01

Revision:
50:e73cd097fdcb
Parent:
49:93355c01e261
Child:
51:32f9ffeafb6d
--- a/N5110.cpp	Mon Mar 19 13:44:23 2018 +0000
+++ b/N5110.cpp	Wed Jan 22 12:50:25 2020 +0000
@@ -38,6 +38,17 @@
     _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;