Jan Kamidra
/
Sparkfun_Weather_Meter
Sparkfun's Weather Meter demo
main.cpp
- Committer:
- JohnnyK
- Date:
- 21 months ago
- Revision:
- 1:22f48756f273
- Parent:
- 0:1cd75b75e9fd
File content as of revision 1:22f48756f273:
#include "mbed.h" #include "WeatherMeters.h" WeatherMeters station(D3, A0, D2, Weather_auto); // change to your pins int main() { printf("Mbed WeatherMeters example\r\n"); // do something before loop while(1){ printf("Windspeed: %3.2f\r\n",station.get_windspeed()); printf("Windvane: %3.2f °\r\n",station.get_windvane()); printf("Raingaug %3.2f\r\n",station.get_raingauge()); thread_sleep_for(1000); } }