Mini projet LOO
Dependencies: mbed APDS_9960 mbed-rtos
Home du projet
src/cLed.cpp
- Committer:
- clementdoreau
- Date:
- 2016-04-21
- Revision:
- 30:c647da947bd9
- Parent:
- 29:95469b25e187
File content as of revision 30:c647da947bd9:
#include "cLed.h" // Définition de la classe Led // CONSTRUCTEURS cLed::cLed() { _positionX = 0; _positionY = 0; _couleur = 0x00; } cLed::cLed(int x, int y) { _positionX = x; _positionY = y; } cLed::cLed(int x, int y, unsigned int c) { _positionX = x; _positionY = y; _couleur = c; } // GETTERS int cLed::getPositionX() { return _positionX; } int cLed::getPositionY() { return _positionY; } int cLed::getOldPositionX(){ return _oldPositionX; } int cLed::getOldPositionY(){ return _oldPositionY; } unsigned int cLed::getCouleur() { return _couleur; } // SETTER void cLed::setPositionX( int x) { _positionX = x; } void cLed::setPositionY(int y) { _positionY = y; } void cLed::setOldPositionX(int x){ _oldPositionX = x; } void cLed::setOldPositionY(int y){ _oldPositionY = y; } void cLed::setCouleur(unsigned int c) { _couleur = c; }