elliot-g / Arduino-Car-Simulation

A simplistic car simulation using Arduino, Processing, and basic electronic components.
The Unlicense
0 stars 0 forks source link

Shorten if statements in Arduino code #4

Open elliot-g opened 4 years ago

elliot-g commented 4 years ago

The directional if statements in the loop() function can be made more efficient and shortened. For now the code will remain the way it is, but after we decide if we are going to implement speed, these change(s) will be considered.

Example:

if (backing up) {
    turn on back up lights
} else {
    turn off backing lights
    if (going forward) {
        etc...
   }
}