4 pins(vcc,gnd,tx,rx)
Dependents: frdm_k64f_serialgps Low_Power_Long_Distance_IR_Vision_Robot Low_Power_Long_Distance_IR_Vision_Robot
Fork of GPS by
Diff: GPS.h
- Revision:
- 2:7350eda5fa8c
- Parent:
- 1:1d60e6a0ffd9
diff -r 1d60e6a0ffd9 -r 7350eda5fa8c GPS.h --- a/GPS.h Sat Nov 02 16:17:58 2013 +0000 +++ b/GPS.h Fri Aug 12 08:14:08 2016 +0000 @@ -42,9 +42,18 @@ */ int sample(); + + /** Beijig time format(shi,fen,miao) **/ + int hour; + int minute; + int seconed; + /** The longitude (call sample() to set) */ float longitude; - + + /** display north/south, east/west unit**/ + char ns, ew, unit; + /** The latitude (call sample() to set) */ float latitude; @@ -74,6 +83,7 @@ float trunc(float v); void getline(); + //create a serial object Serial _gps; };