Skip to content

Commit

Permalink
Update sketches to use updated Time library
Browse files Browse the repository at this point in the history
The old Time library is not compatible with the newer version of the
Arduino IDE (see PaulStoffregen/Time#32).  These sketches have been
updated to use the newer TimeLib library.
  • Loading branch information
petewill committed Oct 14, 2016
1 parent 74d966d commit 5793e99
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/GPSSensor/GPSSensor.ino
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ static const uint32_t GPSBaud = 9600;
const int offset = 1;

#include <SPI.h>
#include <Time.h>
#include <TimeLib.h>
#include <MySensors.h>
#include <TinyGPS++.h>
#include <SoftwareSerial.h>
Expand Down
2 changes: 1 addition & 1 deletion examples/IrrigationController/IrrigationController.ino
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Contributed by Jim (BulldogLowell@gmail.com) with much contribution from Pete (p
//#define MY_NODE_ID 1 // Set this to fix your Radio ID or use Auto

#include <Wire.h>
#include <Time.h>
#include <TimeLib.h>
#include <SPI.h>
#include <MySensors.h>
#include <LiquidCrystal.h>
Expand Down
2 changes: 1 addition & 1 deletion examples/RainGauge/RainGauge.ino
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
#include <SPI.h>
#include <MySensors.h>
#include <math.h>
#include <Time.h>
#include <TimeLib.h>

#define SKETCH_NAME "Rain Gauge"
#define SKETCH_VERSION "1.4.1a"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

#include <SPI.h>
#include <MySensors.h>
#include <Time.h>
#include <TimeLib.h>
#include <DS3232RTC.h> // A DS3231/DS3232 library
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
Expand Down
2 changes: 1 addition & 1 deletion examples/TimeAwareSensor/TimeAwareSensor.ino
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

#include <SPI.h>
#include <MySensors.h>
#include <Time.h>
#include <TimeLib.h>

bool timeReceived = false;
unsigned long lastUpdate=0, lastRequest=0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
#define MY_RADIO_NRF24
//#define MY_RADIO_RFM69

#include <Time.h>
#include <TimeLib.h>
#include <SPI.h>
#include <MySensors.h>
#include <stdarg.h>
Expand Down

0 comments on commit 5793e99

Please sign in to comment.