I write this to see if they find the fault ... the subject is simple, read the value of a potentiometer and use it to change the time in a digital sequence to excite some transistors that give cane to coils of a hard drive .
I know there are other means, but I want to try them all ... and this takes me 3 days I do and I get this error. Apparently it does not recognize the variables I declare in the program ...
I send the image of when I compile ... thanks for your attention.
Ok...and this:
[url=http://subefotos.com/ver/?f5e1e617683aa516023489c66e093a58o.jpg][img]http://thumbs.subefotos.com/f5e1e617683aa516023489c66e093a58o.jpg[/img][/url]
.....
Or this:
http://thumbs.subefotos.com/f5e1e617683aa516023489c66e093a58o.jpg
....
http://subefotos.com/ver/?f5e1e617683aa516023489c66e093a58o.jpg
....
<a href="http://subefotos.com/ver/?f5e1e617683aa516023489c66e093a58o.jpg" target="_blank"><img src="http://thumbs.subefotos.com/f5e1e617683aa516023489c66e093a58o.jpg" /></a>
...
Well no more images.
Sure. I'll be back with a picture of the answer (which is text) as soon as I can find a camera to take a picture of what I typed up, and shrink it down to the point where it is illegible. Hang tight.
You have declared your variables inside setup(); that means that they are only known inside setup() (local scope).
Now you try to access them in loop() where they are not known and hence the error. If you want your variable to be known everywhere, they need to have global scope; that is, declare them outside any function.
I already have it, it was not a global variable. It was a mistake to put it inside the setup ().
Now...are sure to find the loop ().
Beginner bug that has locked me for a week, thank you very much for the help ... now to continue burning transistors or the engine this does what I command, hehe.