Open osalas0013 opened 4 years ago
//updateLED()
//Reset all LED pins to low //Then set your current LED to position to HIGH //Use digital write and global variable (pos)
//updatePosition()
// If the sensor value is greater than the MID value, move the position of the LED up one //If the sensor value is less than the MID value, move the position of the LED down one //If the LED position is on the edge, do not update the position to go out of bounds
//updateLED() //updatePosition()