Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- input.onButtonPressed(Button.A, function () {
- Object2 += -1
- })
- input.onButtonPressed(Button.B, function () {
- Object2 += 1
- })
- let Object2 = 0
- radio.setGroup(253)
- basic.forever(function () {
- if (Object2 == 0) {
- basic.showLeds(`
- . . # . .
- # . # . .
- # # # # #
- . . # . .
- . . # # .
- `)
- } else if (Object2 == 1) {
- basic.showLeds(`
- . . . . .
- . . . . .
- . . # . .
- . # # # .
- . # # # .
- `)
- } else if (Object2 == 2) {
- basic.showLeds(`
- . # # # .
- . # # # .
- . # # # .
- . # # # .
- . # # # .
- `)
- } else {
- basic.showLeds(`
- . # # # .
- . . . # .
- . . # # .
- . . . . .
- . . # . .
- `)
- }
- })
- basic.forever(function () {
- if (Object2 >= 3) {
- Object2 = 0
- } else if (Object2 <= -1) {
- Object2 = 2
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement