I'm quite new to javascript and I want a the crickit.motor1.run(60) to get set to 0 after 2 seconds but it isn't working and I'm kinda out of options for what to do next. This is my code
forever(function() {
  if (crickit.touch1.touchRead() > 400) {
    light.setPixelColor(0, 0x00ffff)
    crickit.motor1.run(60);
  }
  pause(100)
})
function motorOff() {
  crickit.motor1.run(0);
}
forever(function() {
  if (crickit.motor1.run() = 60)
    setTimeout(motorOff() {
    }, 2000);
})
 
     
     
    