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
include/cLed.h
- Committer:
- Willheisen
- Date:
- 2016-04-22
- Revision:
- 32:029962133529
- Parent:
- 30:c647da947bd9
File content as of revision 32:029962133529:
#ifndef LED_H #define LED_H #include "Couleurs.h" #include "mbed.h" // Classe Led // Gestion d'une LED de la matrice de LEDs class cLed { // ATTRIBUTS private: //position actuelle de la LED int _positionX; int _positionY; //ancienne position de la LED int _oldPositionX; int _oldPositionY; //couleur de la LED unsigned int _couleur; public: // CONSTRUCTEURS cLed(); cLed( int x, int y); cLed( int x, int y, unsigned int c); // GETTERS int getPositionX(); int getPositionY(); int getOldPositionX(); int getOldPositionY(); unsigned int getCouleur(); // SETTERS void setPositionX( int); void setPositionY( int); void setOldPositionX( int); void setOldPositionY( int); void setCouleur(unsigned int c); }; #endif