I would like to write a scrip that would begin after seeing a button push on the front panel. Have not seen anyone use a function like that in viewing the examples online. do you just use an endless loop and wait for the start button?
Yup.
Yes
Mark
do you just use an endless loop and wait for the start button?
Well if it were endless then it would never begin.
At the end of setup you could write:-
while( digitalRead(pin) == HIGH) { } // hold until button press
This assumes your button is wired between ground and input and you have enabled the internal pull up resistors.
lmayhew0114:
I would like to write a scrip that would begin after seeing a button push on the front panel. Have not seen anyone use a function like that in viewing the examples online. do you just use an endless loop and wait for the start button?
Have you tried this out? It would take at most 10 minutes.
If you did, what happened.
The Arduino is a great tool for learning-by-doing
...R