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/cTe.cpp
- Revision:
- 30:c647da947bd9
- Parent:
- 29:95469b25e187
- Child:
- 31:7313366789f2
diff -r 95469b25e187 -r c647da947bd9 src/cTe.cpp
--- a/src/cTe.cpp Wed Apr 20 15:09:43 2016 +0000
+++ b/src/cTe.cpp Thu Apr 21 12:33:58 2016 +0000
@@ -19,16 +19,16 @@
_Leds[2].setPositionY(_positionY);
_Leds[3].setPositionX(_positionX);
_Leds[3].setPositionY(_positionY + 1);
- for(unsigned int i = 0; i<4; i++) {
+ for(int i = 0; i<4; i++) {
_Leds[i].setOldPositionX(_Leds[i].getPositionX());
}
- for(unsigned int i = 0; i<4; i++) {
+ for(int i = 0; i<4; i++) {
_Leds[i].setOldPositionY(_Leds[i].getPositionY());
}
_typeForme = 3;
}
-cTe::cTe(unsigned int x, unsigned int y)
+cTe::cTe(int x, int y)
{
// variables à 0
_positionX = x;
@@ -45,10 +45,10 @@
_Leds[2].setPositionY(_positionY);
_Leds[3].setPositionX(_positionX);
_Leds[3].setPositionY(_positionY + 1);
- for(unsigned int i = 0; i<4; i++) {
+ for(int i = 0; i<4; i++) {
_Leds[i].setOldPositionX(_Leds[i].getPositionX());
}
- for(unsigned int i = 0; i<4; i++) {
+ for(int i = 0; i<4; i++) {
_Leds[i].setOldPositionY(_Leds[i].getPositionY());
}
_typeForme = 3;
@@ -59,7 +59,7 @@
void cTe::rotationHoraire()
{
// Sauvegarde des anciennes positions
- for (unsigned int i = 0; i < 4; i++) {
+ for (int i = 0; i < 4; i++) {
_Leds[i].setOldPositionX(_Leds[i].getPositionX());
_Leds[i].setOldPositionY(_Leds[i].getPositionY());
}