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:
- 10:9ef3f520ff6c
- Parent:
- 7:4b283e36b147
- Child:
- 29:95469b25e187
--- a/include/cLed.h Wed Apr 06 21:53:55 2016 +0000 +++ b/include/cLed.h Thu Apr 07 15:24:07 2016 +0000 @@ -11,6 +11,8 @@ private: unsigned char _positionX; unsigned char _positionY; + unsigned char _oldPositionX; + unsigned char _oldPositionY; unsigned char _couleur; public: // CONSTRUCTEUR @@ -21,14 +23,17 @@ unsigned char getPositionX(); unsigned char getPositionY(); + unsigned char getOldPositionX(); + unsigned char getOldPositionY(); unsigned char getCouleur(); // SETTER - void setPositionX(unsigned char x); - void setPositionY(unsigned char y); - void allumer(unsigned char c); - void eteindre(); + void setPositionX(unsigned char); + void setPositionY(unsigned char); + void setOldPositionX(unsigned char); + void setOldPositionY(unsigned char); + void setCouleur(unsigned char c); // METHODES