Hello, I need help understanding what seems to be a pretty basic function but I cannot figure out. Can someone please help?
I'm trying to control via serial monitor one DC motor.
I'm not understanding what lines of code will enable me to type "w" into the monitor and have my DC motor drive forward.
I've tried many different while, if, and case statements but am not understanding this simple (hard for me) concept.
Left motor running one direction (forward)
int enA = 9;
int in1 = 8;
int in2 = 7;
// Set all left motor control pins to outputs
// This function will run the left motor forward a fixed speed
// Turn on left motor
// Set speed to 200 out of possible range 0~255