Mini projet LOO
Dependencies: mbed APDS_9960 mbed-rtos
Home du projet
Diff: src/cLed.cpp
- Revision:
- 30:c647da947bd9
- Parent:
- 29:95469b25e187
--- a/src/cLed.cpp Wed Apr 20 15:09:43 2016 +0000 +++ b/src/cLed.cpp Thu Apr 21 12:33:58 2016 +0000 @@ -10,12 +10,12 @@ _couleur = 0x00; } -cLed::cLed(unsigned int x, unsigned int y) { +cLed::cLed(int x, int y) { _positionX = x; _positionY = y; } -cLed::cLed(unsigned int x, unsigned int y, unsigned int c) { +cLed::cLed(int x, int y, unsigned int c) { _positionX = x; _positionY = y; _couleur = c; @@ -23,18 +23,18 @@ // GETTERS -unsigned int cLed::getPositionX() { +int cLed::getPositionX() { return _positionX; } -unsigned int cLed::getPositionY() { +int cLed::getPositionY() { return _positionY; } -unsigned int cLed::getOldPositionX(){ +int cLed::getOldPositionX(){ return _oldPositionX; } -unsigned int cLed::getOldPositionY(){ +int cLed::getOldPositionY(){ return _oldPositionY; } @@ -45,19 +45,19 @@ // SETTER -void cLed::setPositionX(unsigned int x) { +void cLed::setPositionX( int x) { _positionX = x; } -void cLed::setPositionY(unsigned int y) { +void cLed::setPositionY(int y) { _positionY = y; } -void cLed::setOldPositionX(unsigned int x){ +void cLed::setOldPositionX(int x){ _oldPositionX = x; } -void cLed::setOldPositionY(unsigned int y){ +void cLed::setOldPositionY(int y){ _oldPositionY = y; }