Reverse movement

The right rear motor should rotate anticlockwise and left rear motor should rotate clockwise. During forward movement green LED will glow:

module.exports.move_reverse = function(callback){  clearInterval(leftIndicatorHandler);  clearInterval(rightIndicatorHandler);  enable_1.digitalWrite(1);   input_1.digitalWrite(1);   input_2.digitalWrite(0);  enable_2.digitalWrite(1);   input_3.digitalWrite(0);   input_4.digitalWrite(1);  green_LED.digitalWrite(0);   red_LED.digitalWrite(1);   console.log ("move reverse")   callback ("move reverse")}

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.