batch replace onButtonPressed(Button...
This commit is contained in:
1 parent
1f7e0b0f79
commit
850c313c5d
68 files changed
+187
-187
No files matched your search
@@ -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