== is for a compare, = is an assignment.
Why do you want to read the LEDs? The usual approach is to keep a variable that is set when a condition is true and is cleared when another condition is true. Your motor can run based on that variable.
== is for a compare, = is an assignment.
Why do you want to read the LEDs? The usual approach is to keep a variable that is set when a condition is true and is cleared when another condition is true. Your motor can run based on that variable.