Stop

Both the motors should remain stationary:

module.exports.motor_stop = function(callback){  clearInterval(leftIndicatorHandler);  clearInterval(rightIndicatorHandler);   enable_1.digitalWrite(0);   input_1.digitalWrite(0);   input_2.digitalWrite(0);   enable_2.digitalWrite(0);   input_3.digitalWrite(0);   input_4.digitalWrite(0);   green_LED.digitalWrite(0);   red_LED.digitalWrite(0);  console.log ("Motor Stopped")  callback ("Motor Stopped")}

Get Internet of Things with Raspberry Pi 3 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.