Hello...
I am working through understanding the programming language and had a question regarding proper formatting. I am working with LED's and have ran into a problem and the solution has me stumped. I am using the 'examples' as a learning tool.
Problem:
I have 4 LED's programmed to fade sequentially... the code functions fine.
I have 2 LED's that I would like to blink alternately.
After I assigned the 'int' of the LED's and label them as 'OUTPUT'... I write the fade code within the { }
When doing a separate command, such as a 'blink', where is that code properly placed? If I place the blink code inside the { } of the fade code... I get an erratic response. If I place the blink code in it's own { } after the fade code, I get a syntax error when verifying the code.
Yes... a very 'newb' question but am trying to learn it....
Thanks