Set LED plot row/column ranges for 'Reaction Time' (#2420)

This commit is contained in:
Galen Nickel 2019-09-10 13:34:24 -07:00 committed by Peli de Halleux
parent 69b553d7bc
commit ae685eba2c

View File

@ -221,7 +221,7 @@ input.onPinPressed(TouchPin.P0, () => {
running = true
led.stopAnimation()
basic.clearScreen()
led.plot(Math.randomRange(0, 5), Math.randomRange(0, 5))
led.plot(Math.randomRange(0, 4), Math.randomRange(0, 4))
}
})
running = false
@ -254,7 +254,7 @@ input.onPinPressed(TouchPin.P0, () => {
running = true
led.stopAnimation()
basic.clearScreen()
led.plot(Math.randomRange(0, 5), Math.randomRange(0, 5))
led.plot(Math.randomRange(0, 4), Math.randomRange(0, 4))
}
})
input.onPinPressed(TouchPin.P1, () => {