2013 Sew Electric book and updated 2015 Lilypad Arduino program don't match

Hi Forum:

I am learning how to program Lilypad Arduino from the book, Sew Electric. I am totally new and eager.

I notice that the book, written in 2013, must refer to a version of Arduino which I do not have. I have the 2015 Arduino software. So, the program BLINK is written differently than as presented in the book. How can I find either: 1) updated text for the book 2) older version of the Arduino software referenced in the book 3) some other options?

I have downloaded Arduino 1.6.6 Hourly Build 2015/10/2 05:32. The program BLINK in this software does not look like the program in the book or website in the chapter Programming Your Lilypad: Basic Code Elements. Specifically, the book/website state:

"Add a variable called delayTime to your program and set its value to 1000. Add this line right after the int led = 13; line."

But, I am given an error code: "delayTime was not declared in this scope"

My erroneous code looks like:

// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin 13 as an output.
pinMode(13, OUTPUT);
int delayTime = 1000;
}

// the loop function runs over and over again forever
void loop() {
digitalWrite(13, HIGH); // turn the LED on (HIGH is the voltage level)
delay(delayTime); // wait for a second
digitalWrite(13, LOW); // turn the LED off by making the voltage LOW
delay(delayTime); // wait for a second
}

Any help in learning how to program these Sew Electric/Arduino projects is greatly appreciated!
Thank you very much!
Sincerely,
88fractal

The variable called delayTime must not be declared inside "setup" but outside "setup" to become a global variable that is valid "all over" your sketch.
Declaring it inside "setup" it becomes an local variable, valid only inside setup (but not inside loop).
For more information see Variable Scope .

This has nothing to do with the IDE version because it is a C/C++ convention.

When your book says: "Add a variable called delayTime to your program and set its value to 1000. Add this line right after the int led = 13; line."
this is wrong and allways was.

Let's hope that that this is the only mistake in this book (whitch I do not know).

int delayTime = 1000;

// the setup function runs once when you press reset or power the board
void setup() {
   // initialize digital pin 13 as an output.
   pinMode(13, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
   digitalWrite(13, HIGH);   // turn the LED on (HIGH is the voltage level)
   delay(delayTime);              // wait for a second
   digitalWrite(13, LOW);    // turn the LED off by making the voltage LOW
   delay(delayTime);           // wait for a second
}

Thank you!
Much appreciated!