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