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@4:b7a46af55574, 2016-03-31 (annotated)
- Committer:
- Willheisen
- Date:
- Thu Mar 31 11:18:41 2016 +0000
- Revision:
- 4:b7a46af55574
- Parent:
- 3:493dd1cf30a4
- Child:
- 7:4b283e36b147
afficher form:e ok
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
clementdoreau | 1:ab5f440f4156 | 1 | #ifndef LED_H |
clementdoreau | 1:ab5f440f4156 | 2 | #define LED_H |
clementdoreau | 1:ab5f440f4156 | 3 | |
clementdoreau | 1:ab5f440f4156 | 4 | #include "Couleurs.h" |
Willheisen | 3:493dd1cf30a4 | 5 | #include "mbed.h" |
clementdoreau | 1:ab5f440f4156 | 6 | |
clementdoreau | 1:ab5f440f4156 | 7 | // Classe Led |
clementdoreau | 1:ab5f440f4156 | 8 | // Gestion d'une Led de la matrice de led |
clementdoreau | 1:ab5f440f4156 | 9 | |
Willheisen | 4:b7a46af55574 | 10 | class cLed |
Willheisen | 4:b7a46af55574 | 11 | { |
Willheisen | 4:b7a46af55574 | 12 | private: |
Willheisen | 4:b7a46af55574 | 13 | unsigned char _positionX; |
Willheisen | 4:b7a46af55574 | 14 | unsigned char _positionY; |
Willheisen | 4:b7a46af55574 | 15 | unsigned char _couleur; |
Willheisen | 4:b7a46af55574 | 16 | public: |
Willheisen | 4:b7a46af55574 | 17 | // CONSTRUCTEUR |
Willheisen | 4:b7a46af55574 | 18 | cLed(); |
Willheisen | 4:b7a46af55574 | 19 | cLed(unsigned char x, unsigned char y); |
Willheisen | 4:b7a46af55574 | 20 | cLed(unsigned char x, unsigned char y, unsigned char c); |
Willheisen | 4:b7a46af55574 | 21 | // GETTERS |
clementdoreau | 1:ab5f440f4156 | 22 | |
Willheisen | 4:b7a46af55574 | 23 | unsigned char getPositionX(); |
Willheisen | 4:b7a46af55574 | 24 | unsigned char getPositionY(); |
Willheisen | 4:b7a46af55574 | 25 | unsigned char getCouleur(); |
clementdoreau | 1:ab5f440f4156 | 26 | |
Willheisen | 4:b7a46af55574 | 27 | // SETTER |
clementdoreau | 1:ab5f440f4156 | 28 | |
Willheisen | 4:b7a46af55574 | 29 | void setPositionX(unsigned char x); |
Willheisen | 4:b7a46af55574 | 30 | void setPositionY(unsigned char y); |
Willheisen | 4:b7a46af55574 | 31 | void allumer(unsigned char c); |
Willheisen | 4:b7a46af55574 | 32 | void eteindre(); |
clementdoreau | 1:ab5f440f4156 | 33 | |
Willheisen | 4:b7a46af55574 | 34 | // METHODES |
Willheisen | 4:b7a46af55574 | 35 | |
clementdoreau | 1:ab5f440f4156 | 36 | |
clementdoreau | 1:ab5f440f4156 | 37 | }; |
clementdoreau | 1:ab5f440f4156 | 38 | |
clementdoreau | 1:ab5f440f4156 | 39 | #endif |