*** I AM TOTALLY NEW TO THIS***
Using a Duemilanove, I am following along with a tutorial video on how to make an LED blink using a push button. Super simple, right? At about 8:48, the dude changes the code so that the button does something different and adds some new lines of code.
I have typed out the code exactly as he did, but my 'false' command, after 'boolean' doesn't change colour like the other variables and I think it's messing up the rest of the code. By the looks of the error, it would seem that ledOn is meaningless because 'the scope (the false) is not defined', yes?
WHAT AM I DOING WRONG? I've tried capitalizing the whole word, or just the first letter. Even writing 'true' doesn't work. The video is from 2013, so does the software not understand this command anymore? Am I missing a library? It's super simple, I know, but I want to figure this out before I move on to more complicated stuff.
THANKS FOR YOUR HELP. INO file attached.
LED_Blink.ino (414 Bytes)