Go Down

Topic: arduino interrupt go to new servo position and turn off (Read 631 times) previous topic - next topic

Jamesmurg

How do i code an inturupt so it goes to the start of my void loop and turns off my led

Jamesmurg

Sorry wrong I just need it to turn servo to new position and turn led off

Delta_G

Sorry wrong I just need it to turn servo to new position and turn led off
Should be fairly simple.  You know how to use servo.write() to send a servo to a given position right?  You know how to use digitalWrite to set the state of a pin to turn a LED on or off right?  If not then you have no business messing around with interrupts yet.  You need to learn some basics first. 
|| | ||| | || | ||  ~Woodstock

Please do not PM with technical questions or comments.  Keep Arduino stuff out on the boards where it belongs.

Johan_Ha

____________________

If you ask for help and write 'u' instead of 'you' because you think it's convenient, I will write 'no' instead of 'yes'. For same reasons.

Go Up