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/cForme.h
- Revision:
- 0:b2acac6abf2b
- Child:
- 1:ab5f440f4156
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/include/cForme.h Fri Mar 25 08:21:57 2016 +0000
@@ -0,0 +1,32 @@
+#ifndef CFORME_H
+#define CFORME_H
+
+class cForme
+{
+
+protected:
+ unsigned char _orientation; // 4 orientations : rotation de 90° --> de 1 à 4
+ unsigned char _positionX;
+ unsigned char _positionY;
+ // LEDS
+private:
+
+public:
+ // CONSTRUCTEURS
+ cForme();
+ cForme(unsigned char o, unsigned char x, unsigned char y);
+ // GETTERS
+ unsigned char getOrientation();
+ unsigned char getPositionX();
+ unsigned char getPositionY();
+ // SETTERS
+ void setOrientation(unsigned char orientation);
+ void setPositionX(unsigned char x);
+ void setPositionY(unsigned char y);
+ virtual void afficherForme();
+
+
+};
+
+
+#endif