can someone tell me how to rotate a simple motor with the help of an led code. i was thinking of reversing the direction of current to the led so that the motor attached to the pin rotates in the opp direction and vice versa?
(deleted)
i just need the logic .And i am not driving the motor from an arduino.please jus tell me the logic ie program code
(deleted)
Tell us more how the LED comes into the picture?
Post a schematic or describe the connections with words.