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.
Diff: N5110.cpp
- 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()
{