mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-13 17:22:54 -05:00
Swap wind/rain pins
Add output begin/end markers
This commit is contained in:
@@ -3,11 +3,11 @@
|
||||
#define ReadInterval 1000
|
||||
|
||||
// Weather
|
||||
#define WpinAnem 3
|
||||
#define WpinRain 2
|
||||
#define WpinAnem 2
|
||||
#define WpinRain 3
|
||||
|
||||
#define WintAnem 1
|
||||
#define WintRain 0
|
||||
#define WintAnem 0
|
||||
#define WintRain 1
|
||||
|
||||
#include "SDL_Weather_80422.h"
|
||||
SDL_Weather_80422 weatherStation(WpinAnem, WpinRain, WintAnem, WintRain, A0, SDL_MODE_INTERNAL_AD);
|
||||
@@ -96,6 +96,8 @@ void loop()
|
||||
char returnString[200];
|
||||
returnString[0] = '\0';
|
||||
|
||||
strcat(returnString, "$,");
|
||||
|
||||
char tempString[15];
|
||||
|
||||
tempString[0] = '\0';
|
||||
@@ -220,6 +222,8 @@ void loop()
|
||||
itoa(GPS.day, tempString, 10);
|
||||
strcat(returnString, tempString);
|
||||
|
||||
strcat(returnString, ",#");
|
||||
|
||||
Serial.println(returnString);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user