Hello AAC forum,
Working to call two different functions from void loop() that use blink without delay.
So I copied a sketch that uses blink without delay in void loop().
It works well. Code and schematic attached.
Then the function which blinks w/o delay was made into two functions, runLED3()
and runLED4() and the two functions were called from void loop().
Code and schematic attached.
But the error Compilation error: 'runLED4' was not declared in this scope persists.
It is realized that runLED4 is not declared in the scope of void loop() but
runLED4 is declare as a function.
Can a function not be called from void loop() or am I missing something?
Thanks.
Allen Pitts
Working to call two different functions from void loop() that use blink without delay.
So I copied a sketch that uses blink without delay in void loop().
It works well. Code and schematic attached.
Then the function which blinks w/o delay was made into two functions, runLED3()
and runLED4() and the two functions were called from void loop().
Code and schematic attached.
But the error Compilation error: 'runLED4' was not declared in this scope persists.
It is realized that runLED4 is not declared in the scope of void loop() but
runLED4 is declare as a function.
Can a function not be called from void loop() or am I missing something?
Thanks.
Allen Pitts
Attachments
-
2.3 KB Views: 27
-
2 KB Views: 14
-
31.2 KB Views: 10
-
33 KB Views: 10