Skip to content

Commit

Permalink
added simple example for basic use
Browse files Browse the repository at this point in the history
  • Loading branch information
rkhamilton authored and rkhamilton committed Aug 17, 2014
1 parent 775f56f commit d0c01db
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions examples/simple_example.ino
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* GPSTZTest.ino
*
* Created: 8/16/2014 1:23:20 PM
* Author: Ryan
*/
#include <GPSTimeZoneLookup.h>

GPSTimeZoneLookup myGPSTZ(33.9612895,-111.3380113);

void setup()
{
Serial.begin(115200);
Serial.print("lat/long: ");
Serial.print(myGPSTZ.latitude);
Serial.print(myGPSTZ.longitude);
Serial.print(" GMT Offset: ");
Serial.print(myGPSTZ.GMTOffset);
Serial.print(" Implements DST: ");
Serial.println(myGPSTZ.implementsDST);
}

void loop()
{
}

0 comments on commit d0c01db

Please sign in to comment.