BastatDoreau / Mbed 2 deprecated MoveYourTetris

Dependencies:   mbed APDS_9960 mbed-rtos

Dependents:   MoveYourTetris_OK

Revision:
1:ab5f440f4156
Child:
3:493dd1cf30a4
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/include/cLed.h	Wed Mar 30 08:53:18 2016 +0000
@@ -0,0 +1,36 @@
+#ifndef LED_H
+#define LED_H
+
+#include "Couleurs.h"
+
+// Classe Led
+// Gestion d'une Led de la matrice de led
+
+class cLed{
+ private:
+  unsigned char _positionX;
+  unsigned char _positionY;
+  unsigned char _couleur;
+ public:
+  // CONSTRUCTEUR
+  cLed();
+  cLed(unsigned char x, unsigned char y);
+  cLed(unsigned char x, unsigned char y, unsigned char  c);
+  // GETTERS
+
+  unsigned char getPositionX();
+  unsigned char getPositionY();
+  unsigned char getCouleur();
+
+  // SETTER
+
+  void setPositionX(unsigned char x);
+  void setPositionY(unsigned char y);
+  void allumerLed(unsigned char c);
+  void eteindreLed();
+
+  // METHODES
+
+};
+
+#endif