Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let index = 0
- basic.forever(function () {
- index = 0
- while (index <= 4) {
- led.plot(index, 0)
- index += 1
- basic.pause(100)
- }
- index = 0
- while (index <= 4) {
- led.plot(4, index)
- index += 1
- basic.pause(100)
- }
- index = 4
- while (index > 0) {
- led.plot(index, 4)
- index += -1
- basic.pause(100)
- }
- index = 4
- while (index > 0) {
- led.plot(0, index)
- index += -1
- basic.pause(100)
- }
- index = 0
- while (index <= 4) {
- led.unplot(index, 0)
- index += 1
- basic.pause(100)
- }
- index = 0
- while (index <= 4) {
- led.unplot(4, index)
- index += 1
- basic.pause(100)
- }
- index = 4
- while (index > 0) {
- led.unplot(index, 4)
- index += -1
- basic.pause(100)
- }
- index = 4
- while (index > 0) {
- led.unplot(0, index)
- index += -1
- basic.pause(100)
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment