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/cCarre.cpp
- Revision:
- 30:c647da947bd9
- Parent:
- 29:95469b25e187
- Child:
- 31:7313366789f2
--- a/src/cCarre.cpp Wed Apr 20 15:09:43 2016 +0000 +++ b/src/cCarre.cpp Thu Apr 21 12:33:58 2016 +0000 @@ -18,16 +18,16 @@ _Leds[2].setPositionY(_positionY + 1); _Leds[3].setPositionX(_positionX + 1); _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 = 1; } -cCarre::cCarre(unsigned int x, unsigned int y) { +cCarre::cCarre( int x, int y) { // variables à 0 _positionX = x; _positionY = y; @@ -43,10 +43,10 @@ _Leds[2].setPositionY(_positionY + 1); _Leds[3].setPositionX(_positionX + 1); _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 = 1;