please help i'm a novice

so i have this code to get me parsing gps data from adafruit ultimate gps i like the fact that it has a delay be nice if i could get a code to turn on and off gps once we get location anyways

i keep getting this message error: 'isAlpha' was not declared in this scope
if (isAlpha(parsed[2])) {
^
Error compiling.

here is my code

#include <Adafruit_GPS.h>

//Seriale tra MCU e GPS
#define mySerial Serial1
Adafruit_GPS GPS(&mySerial);

void setup()
{
GPS.begin(9600);
GPS.sendCommand("$PMTK251,1920022"); //set baud rate to 19200
//GPS.sendCommand("$PMTK251,9600
17"); //set baud rate to 9600
mySerial.end();
GPS.begin(19200);
Serial.begin(115200);
Serial.println("Fatto");
}

void loop(){
GPS.read();
GPS.parse(GPS.lastNMEA());
Serial.println(GPS.latitude);
delay(100);
}

What version of the Arduino IDE are you using?

The Arduino folks don't seem to have heard of backward compatibility. Maybe try an older version. It is easy to have multiple versions on your PC - they are just Java programs.

If you plan on developing a more complex program you would be better to use millis() to manage timing as illustrated in several things at a time. The Arduino can do nothing else during a delay() period.

...R

i been using the 1.6.4 version with arduinoteensy 3.1

i actually got this code up and running with teensy 3.1

only thing is that it only reads the rx and tx from teensy serial 1 which is pin 0 and 1, teensy has 3 serial ports.

question is how i make it read on the pin 7 and 8 on teensy 3.1 its still rx and tx

void setup() {
delay (10000);
Serial1.begin(9600);
Serial.begin(9600);
}

void loop()
{
while (Serial.available())
Serial1.write(Serial.read());
while (Serial1.available())
Serial.write(Serial1.read());
delay (10000);
}

You'll probably get more help if you post this on the PJRC Teensy forum?

Pete

okay thanks