lundi 19 juin 2017

Use Same Statement Twice (If Condition)

I want to ask you if its possible to achieve what I am trying!

I am building an arduino with servomotor, so the main problem is I want to achieve something like this.

1 Time that will read the card it will turn the servo 90º 2 Time Will get back the servo to 0º

So I think I could do it with Ifs.

If Count = Count {
    Run 90º}

If Count = Count {
    Run 0º}

So Hope you guys could help me to solve this! Or if there is a better way to achieve this!

Aucun commentaire:

Enregistrer un commentaire