Hey guys, currently i have a problem with my program. It displays an error of " unexpected char : "i" ". How can i solve this problem? Please guide me! Thanks alot!
#include <NewSoftSerial.h>
#include <TinyGPS.h>
/* This sample code demonstrates the normal use of a TinyGPS object.
It requires the use of SoftwareSerial, and assumes that you have a
4800-baud serial GPS device hooked up on pins 3(rx) and 4(tx).
*/
void loop()
{
bool newData = false;
unsigned long chars;
unsigned short sentences, failed;
// For one second we parse GPS data and report some key values
for (unsigned long start = millis(); millis() - start < 1000;)
{
while (ss.available())
{
char c = ss.read();
// Serial.write(c); // uncomment this line if you want to see the GPS data flowing
if (gps.encode(c)) // Did a new valid sentence come in?
newData = true;
}
}
// Called every time a new frame is available to read
void movieEvent(Movie m)
{
m.read();
}
*Before i run this program, i had add file of the movie into the sketch folder but it seems that it doesnt seems to display the movie out but just displaying a blank folder.