Skip to content

Commit 9ea26d9

Browse files
committed
Cleaning up examples and adding pointers to where to get libraries.
1 parent 737a95b commit 9ea26d9

File tree

3 files changed

+6
-16
lines changed

3 files changed

+6
-16
lines changed

firmware/Weather_Shield_Basic/Weather_Shield_Basic.ino

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,11 @@ const byte STAT_GREEN = 8;
2727
const byte REFERENCE_3V3 = A3;
2828
const byte LIGHT = A1;
2929
const byte BATT = A2;
30-
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
3130

3231
//Global Variables
3332
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
3433
long 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-
4535
void 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");

firmware/Weather_Shield_Weather_Station/Weather_Shield_Weather_Station.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
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

2828
MPL3115A2 myPressure; //Create an instance of the pressure sensor
2929
HTU21D myHumidity; //Create an instance of the humidity sensor

firmware/Weather_Shield_with_GPS/Weather_Shield_with_GPS.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
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

2727
TinyGPSPlus gps;
2828

0 commit comments

Comments
 (0)