Untitled
unknown
c_cpp
2 years ago
406 B
10
Indexable
#include <SoftwareSerial.h>
#include <TinyGPS++.h>
TinyGPSPlus gps;
SoftwareSerial ss(4, 3);
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
ss.begin(9600);
delay(1000);
}
void loop() {
gps.encode(ss.read());
Serial.println(gps.speed.kmph());
Serial.println(gps.encode(ss.read()));
delay(1000);
}
//myservo.write(gps.speed.kmph());
Editor is loading...
Leave a Comment