UNO .. not certain of the model, came with a starter kit.
A bit of personal background if anyone is curious, if not .. actual issue below the asterix's below.
30+ Years of electronics, but as far as programming .. haven't touched it since the 6502. I've always found C to be nearly Greek.
Hopefully I'll be able to lend a hand here with the hardware bits though.
Right now I'm going through the basics as if I was 15 again with an Apple 2.
Attempting to write short sketches to get a feel for the individual commands and syntax.
Ironically, I've got an intended (eventual) project wired up .. a wrist watch utilizing HPDL 1416 displays and a RTC .. but now I have to learn the language to make it work.
Today's task simply to play with and utilize the "While" command.
The idea was to flash an LED ten times.
(I since realize that I'm not pointing to a break, but it doesn't matter yet because it doesn't work at all and tells me that I haven't declared variable. I'm really for all intents day one here.)
The code:
Void setup( ){
pinmode (13, output);}
var = 0;
while (var < 10){
digitalwrite (13, high);
delay (100)
digitalwrite (13, low);
delay (100);
var++;
}
upon verifying, the message "exit status 1
'var' was not declared in this scope".
I've tried playing a bit and declaring var in the setup, but I can't seem to make it work.
What am I not getting?
Once I get over this hump, I'll try using various other methods to test the While syntax .. like an input pin state.
I don't really know another way to learn besides hands on.
Thanks for any help.
Jim.