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: include/cLed.h
- Revision:
- 29:95469b25e187
- Parent:
- 10:9ef3f520ff6c
- Child:
- 30:c647da947bd9
--- a/include/cLed.h Wed Apr 20 14:18:18 2016 +0000 +++ b/include/cLed.h Wed Apr 20 15:09:43 2016 +0000 @@ -9,31 +9,31 @@ class cLed { private: - unsigned char _positionX; - unsigned char _positionY; - unsigned char _oldPositionX; - unsigned char _oldPositionY; - unsigned char _couleur; + unsigned int _positionX; + unsigned int _positionY; + unsigned int _oldPositionX; + unsigned int _oldPositionY; + unsigned int _couleur; public: // CONSTRUCTEUR cLed(); - cLed(unsigned char x, unsigned char y); - cLed(unsigned char x, unsigned char y, unsigned char c); + cLed(unsigned int x, unsigned int y); + cLed(unsigned int x, unsigned int y, unsigned int c); // GETTERS - unsigned char getPositionX(); - unsigned char getPositionY(); - unsigned char getOldPositionX(); - unsigned char getOldPositionY(); - unsigned char getCouleur(); + unsigned int getPositionX(); + unsigned int getPositionY(); + unsigned int getOldPositionX(); + unsigned int getOldPositionY(); + unsigned int getCouleur(); // SETTER - void setPositionX(unsigned char); - void setPositionY(unsigned char); - void setOldPositionX(unsigned char); - void setOldPositionY(unsigned char); - void setCouleur(unsigned char c); + void setPositionX(unsigned int); + void setPositionY(unsigned int); + void setOldPositionX(unsigned int); + void setOldPositionY(unsigned int); + void setCouleur(unsigned int c); // METHODES