Set LED plot row/column ranges for 'Reaction Time' (#2420)
This commit is contained in:
parent
69b553d7bc
commit
ae685eba2c
@ -221,7 +221,7 @@ input.onPinPressed(TouchPin.P0, () => {
|
|||||||
running = true
|
running = true
|
||||||
led.stopAnimation()
|
led.stopAnimation()
|
||||||
basic.clearScreen()
|
basic.clearScreen()
|
||||||
led.plot(Math.randomRange(0, 5), Math.randomRange(0, 5))
|
led.plot(Math.randomRange(0, 4), Math.randomRange(0, 4))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
running = false
|
running = false
|
||||||
@ -254,7 +254,7 @@ input.onPinPressed(TouchPin.P0, () => {
|
|||||||
running = true
|
running = true
|
||||||
led.stopAnimation()
|
led.stopAnimation()
|
||||||
basic.clearScreen()
|
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, () => {
|
input.onPinPressed(TouchPin.P1, () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user