Advertisement
Guest User

matty

a guest
Jul 23rd, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. input.onButtonPressed(Button.A, function () {
  2. Object2 += -1
  3. })
  4. input.onButtonPressed(Button.B, function () {
  5. Object2 += 1
  6. })
  7. let Object2 = 0
  8. radio.setGroup(253)
  9. basic.forever(function () {
  10. if (Object2 == 0) {
  11. basic.showLeds(`
  12. . . # . .
  13. # . # . .
  14. # # # # #
  15. . . # . .
  16. . . # # .
  17. `)
  18. } else if (Object2 == 1) {
  19. basic.showLeds(`
  20. . . . . .
  21. . . . . .
  22. . . # . .
  23. . # # # .
  24. . # # # .
  25. `)
  26. } else if (Object2 == 2) {
  27. basic.showLeds(`
  28. . # # # .
  29. . # # # .
  30. . # # # .
  31. . # # # .
  32. . # # # .
  33. `)
  34. } else {
  35. basic.showLeds(`
  36. . # # # .
  37. . . . # .
  38. . . # # .
  39. . . . . .
  40. . . # . .
  41. `)
  42. }
  43. })
  44. basic.forever(function () {
  45. if (Object2 >= 3) {
  46. Object2 = 0
  47. } else if (Object2 <= -1) {
  48. Object2 = 2
  49. }
  50. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement