Permet de lire et de stocker dans des variables publiques la direction pointées par la girouette WS1080.

Dependents:   test_girouette_library

Revision:
0:493f86ea1ecb
Child:
3:d4d516a75ac9
diff -r 000000000000 -r 493f86ea1ecb GirouetteWD1080.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/GirouetteWD1080.h	Mon May 20 08:14:27 2019 +0000
@@ -0,0 +1,20 @@
+#ifndef MBED_GirouetteWD1080_H
+#define MBED_GirouetteWD1080_H
+ 
+#include "mbed.h"
+#include "string"
+
+class GirouetteWD1080
+{
+    public:
+        GirouetteWD1080(PinName analog_pin);
+        bool read();
+       
+        //char direction[3];
+        string direction;
+        
+    private:
+        AnalogIn girouette;
+};
+
+#endif
\ No newline at end of file