File tree Expand file tree Collapse file tree 3 files changed +6
-16
lines changed
Weather_Shield_Weather_Station Expand file tree Collapse file tree 3 files changed +6
-16
lines changed Original file line number Diff line number Diff line change @@ -27,21 +27,11 @@ const byte STAT_GREEN = 8;
2727const byte REFERENCE_3V3 = A3;
2828const byte LIGHT = A1;
2929const byte BATT = A2;
30- // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
3130
3231// Global Variables
3332// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
3433long lastSecond; // The millis counter to see when a second rolls by
3534
36- float tempf = 0 ; // [temperature F]
37- // float baromin = 30.03;// [barom in] - It's hard to calculate baromin locally, do this in the agent
38- // float dewptf; // [dewpoint F] - It's hard to calculate dewpoint locally, do this in the agent
39-
40- float batt_lvl = 11.8 ; // [analog value from 0 to 1023]
41- float light_lvl = 455 ; // [analog value from 0 to 1023]
42-
43- // -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
44-
4535void setup ()
4636{
4737 Serial.begin (9600 );
@@ -119,7 +109,7 @@ void loop()
119109 Serial.print (" V," );
120110
121111 // Check batt level
122- batt_lvl = get_battery_level ();
112+ float batt_lvl = get_battery_level ();
123113 Serial.print (" VinPin = " );
124114 Serial.print (batt_lvl);
125115 Serial.print (" V" );
Original file line number Diff line number Diff line change 2222 */
2323
2424#include < Wire.h> // I2C needed for sensors
25- #include " SparkFunMPL3115A2.h" // Pressure sensor
26- #include " SparkFunHTU21D.h" // Humidity sensor
25+ #include " SparkFunMPL3115A2.h" // Pressure sensor - Search "SparkFun MPL3115" and install from Library Manager
26+ #include " SparkFunHTU21D.h" // Humidity sensor - Search "SparkFun HTU21D" and install from Library Manager
2727
2828MPL3115A2 myPressure; // Create an instance of the pressure sensor
2929HTU21D myHumidity; // Create an instance of the humidity sensor
Original file line number Diff line number Diff line change 1919 */
2020
2121#include < Wire.h> // I2C needed for sensors
22- #include " SparkFunMPL3115A2.h" // Pressure sensor
23- #include " SparkFunHTU21D.h" // Humidity sensor
22+ #include " SparkFunMPL3115A2.h" // Pressure sensor - Search "SparkFun MPL3115" and install from Library Manager
23+ #include " SparkFunHTU21D.h" // Humidity sensor - Search "SparkFun HTU21D" and install from Library Manager
2424#include < SoftwareSerial.h> // Needed for GPS
25- #include < TinyGPS++.h> // GPS parsing
25+ #include < TinyGPS++.h> // GPS parsing - Available through the Library Manager.
2626
2727TinyGPSPlus gps;
2828
You can’t perform that action at this time.
0 commit comments