i was going to set pin 9 as pushbutton
I don't know how to to that.
then pinmode to input,
You did that bit - good.
Now all you have to do is read the digital pin 9, and assign that value to a variable.
i was going to set pin 9 as pushbutton
I don't know how to to that.
then pinmode to input,
You did that bit - good.
Now all you have to do is read the digital pin 9, and assign that value to a variable.