Enviar coordenadas GPS a smartphone vía GSM y simular encendido y apagado del vehículo
Fork of GPS_7 by
Diff: main.cpp
- Revision:
- 1:99bb5d61015f
- Parent:
- 0:6b7345059afe
- Child:
- 2:5abd8a794703
--- a/main.cpp Tue Jun 08 14:12:30 2010 +0000 +++ b/main.cpp Mon Oct 20 05:42:03 2014 +0000 @@ -2,13 +2,14 @@ #include "GPS.h" Serial pc(USBTX, USBRX); -GPS gps(p9, p10); +GPS gps(PTE22, PTE23); int main() { while(1) { if(gps.sample()) { pc.printf("I'm at %f, %f\n", gps.longitude, gps.latitude); } else { + pc.printf("Oh Dear! No lock :(\n"); } }