LED works, but motor not working

I wanted to control a motor using bolt iot and I wanted it to rotate clockwise and anticlockwise. I had written the following code:
<!doctype html>



FORWARD BACKWARD I put the wires in pin 1 and 0 respectively. however, while trying to execute the program motor does not work. I tried to recheck it using led. The led works perfectly fine. if Led is working then motor should also work. I also tried to run the motor using ground pin and 5V pin and it works by that. Can anyone help me with this problem???

Hi @adityarajkuk,

Your code is not visible- Follow these steps to post your code on forum.boltiot.com

  1. Copy and paste your code in the input box.
  2. Select the code and click on </> icon to convert text into code.

You can also edit your questions.