Permet de lire et de stocker dans des variables publiques la direction pointées par la girouette WS1080.
Dependents: test_girouette_library
GirouetteWD1080.h
- Committer:
- Station_Meteo_Laos
- Date:
- 2019-05-30
- Revision:
- 3:d4d516a75ac9
- Parent:
- 0:493f86ea1ecb
- Child:
- 4:dfa695d9c256
File content as of revision 3:d4d516a75ac9:
#ifndef MBED_GirouetteWD1080_H #define MBED_GirouetteWD1080_H #include "mbed.h" #include "string" class GirouetteWD1080 { public: GirouetteWD1080(PinName analog_pin); bool read_string(); bool read_int(); //char direction[3]; string direction_string; int direction_int; private: AnalogIn girouette; }; #endif