Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function canUp() {
- iBIT.Servo(ibitServo.SV1, 150)
- basic.pause(500)
- iBIT.Servo(ibitServo.SV2, 150)
- }
- input.onButtonPressed(Button.A, function () {
- canUp()
- })
- input.onButtonPressed(Button.B, function () {
- canDown()
- })
- function canDown() {
- iBIT.Servo(ibitServo.SV2, 80)
- basic.pause(500)
- iBIT.Servo(ibitServo.SV1, 80)
- basic.pause(500)
- iBIT.Servo(ibitServo.SV2, 80)
- }
- iBIT.Servo(ibitServo.SV2, 80)
- iBIT.Servo(ibitServo.SV1, 80)
- basic.pause(500)
Advertisement
Add Comment
Please, Sign In to add comment