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

Fork of N5110 by Craig Evans

Revision:
31:8a0c21042f82
Parent:
29:5bc91bd44c77
Child:
32:c9643726edca
--- a/N5110.cpp	Thu Feb 16 15:32:05 2017 +0000
+++ b/N5110.cpp	Thu Feb 16 15:36:44 2017 +0000
@@ -40,6 +40,20 @@
     _dc = new DigitalOut(dcPin);
 }
 
+N5110::~N5110()
+{
+    delete _spi;
+
+    if(_pwr) {
+        delete _pwr;
+    }
+
+    delete _led;
+    delete _sce;
+    delete _rst;
+    delete _dc;
+}
+
 // initialise function - powers up and sends the initialisation commands
 void N5110::init()
 {