batch replace onButtonPressed(Button...
This commit is contained in:
@ -28,7 +28,7 @@ basic.showLeds(`
|
||||
. . # . .
|
||||
. . # . .
|
||||
`, 400)
|
||||
input.onButtonPressed("A", () => {
|
||||
input.onButtonPressed(Button.A, () => {
|
||||
})
|
||||
```
|
||||
|
||||
@ -42,7 +42,7 @@ basic.showLeds(`
|
||||
. . # . .
|
||||
. . # . .
|
||||
`, 400)
|
||||
input.onButtonPressed("A", () => {
|
||||
input.onButtonPressed(Button.A, () => {
|
||||
let random = Math.random(2)
|
||||
})
|
||||
```
|
||||
@ -57,7 +57,7 @@ basic.showLeds(`
|
||||
. . # . .
|
||||
. . # . .
|
||||
`, 400)
|
||||
input.onButtonPressed("A", () => {
|
||||
input.onButtonPressed(Button.A, () => {
|
||||
let random1 = Math.random(2)
|
||||
if (random1 == 0) {
|
||||
basic.showString("TRUTH", 150)
|
||||
@ -79,7 +79,7 @@ basic.showLeds(`
|
||||
. . # . .
|
||||
. . # . .
|
||||
`, 400)
|
||||
input.onButtonPressed("A", () => {
|
||||
input.onButtonPressed(Button.A, () => {
|
||||
let random2 = Math.random(2)
|
||||
if (random2 == 0) {
|
||||
basic.showString("TRUTH", 150)
|
||||
|
@ -18,7 +18,7 @@ basic.plotImage(`
|
||||
. . # . .
|
||||
. . # . .
|
||||
`)
|
||||
input.onButtonPressed("A", () => {
|
||||
input.onButtonPressed(Button.A, () => {
|
||||
let random = Math.random(2)
|
||||
if (random == 0) {
|
||||
basic.showString("TRUTH", 150)
|
||||
@ -47,7 +47,7 @@ basic.plotImage(`
|
||||
. . # . .
|
||||
. . # . .
|
||||
`)
|
||||
input.onButtonPressed("A", () => {
|
||||
input.onButtonPressed(Button.A, () => {
|
||||
let random1 = Math.random(3) // ***
|
||||
if (random1 == 0) {
|
||||
basic.showString("TRUTH", 150)
|
||||
@ -76,7 +76,7 @@ basic.plotImage(`
|
||||
. . # . .
|
||||
. . # . .
|
||||
`)
|
||||
input.onButtonPressed("A", () => {
|
||||
input.onButtonPressed(Button.A, () => {
|
||||
let random2 = Math.random(3)
|
||||
if (random2 == 0) {
|
||||
basic.showString("TRUTH", 150) // ***
|
||||
|
Reference in New Issue
Block a user