Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var i = 0
- onevent buttons
- if i < 0 and i < 32 then
- call leds.top(32,0,0)
- else
- call leds.top(0,32,0)
- end
- if button.left ==1 then
- i = i-1
- end
- if button.right ==1 then
- i =i+1
- end
- if button.left == 1 or button.right ==1 then
- call leds.top(0,32,0)
- call leds.circle(i,i,i,i,i,i,i,i)
- elseif button.center == 1 then
- call leds.top (0,0,32)
- if button.forward ==1 or button.backward ==1 then
- call leds.top(32,0,0)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement