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