osalas0013 / osalas0013.github.io

0 stars 0 forks source link

Finish Pseudo-Code #1

Open osalas0013 opened 4 years ago

osalas0013 commented 4 years ago

//updateLED() //updatePosition()

osalas0013 commented 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