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.
Dependencies: mbed APDS_9960 mbed-rtos
Diff: src/cMatrice.cpp
- Revision:
- 8:92d0c4961a16
- Parent:
- 7:4b283e36b147
- Child:
- 9:6f3d8b714a59
diff -r 4b283e36b147 -r 92d0c4961a16 src/cMatrice.cpp
--- a/src/cMatrice.cpp Fri Apr 01 14:30:30 2016 +0000
+++ b/src/cMatrice.cpp Wed Apr 06 15:41:24 2016 +0000
@@ -15,7 +15,9 @@
}
cMatrice::~cMatrice() {
- //dtor
+ for (int i = 0; i < 8; i++)
+ delete[] _matrice[i];
+ delete[] _matrice;
}
/*// GETTER
@@ -35,7 +37,7 @@
DigitalOut cs(p14);
SPI matrice(p11, p12, p13);
matrice.frequency(100000);
-
+ //matrice.format(8,3);
_matrice[0][0] = LED_ORANGE;
cs = 0;