I want to input some variable to arduino(i use MEGA)
the variable is for countdown timer so if I don't put button function in setup
countdown timer will get 0 and loop will over(I mean over is countdown timer is overed but I still can trans with arduino).
so I have to put button function to setup
but, when I put it to setup arduino will run before I put variable
i was wondering is there have function like Serial.parseInt()
to pause arduino run until get variable
has anyone can give me some tips , thanks in advance.
btw , sorry for my bad English