tr
Diff: N5110.cpp
- Revision:
- 31:8a0c21042f82
- Parent:
- 29:5bc91bd44c77
- Child:
- 32:c9643726edca
diff -r 5bc91bd44c77 -r 8a0c21042f82 N5110.cpp --- 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() {