Permet de lire et de stocker dans des variables publiques la direction pointées par la girouette WS1080.
Dependents: test_girouette_library
Diff: GirouetteWD1080.h
- Revision:
- 3:d4d516a75ac9
- Parent:
- 0:493f86ea1ecb
- Child:
- 4:dfa695d9c256
diff -r 6d392919b388 -r d4d516a75ac9 GirouetteWD1080.h --- a/GirouetteWD1080.h Mon May 20 08:45:58 2019 +0000 +++ b/GirouetteWD1080.h Thu May 30 08:38:39 2019 +0000 @@ -8,10 +8,12 @@ { public: GirouetteWD1080(PinName analog_pin); - bool read(); + bool read_string(); + bool read_int(); //char direction[3]; - string direction; + string direction_string; + int direction_int; private: AnalogIn girouette;