Skip to comments
EZ-Script Code:
So here's the Target Bot.
D7 is the main servo.
D8 is the switch, which uses the GND and Signal cables (no resistors required).
EZ-Script Code:
Code:
Servo(d7,38)
Sleep(1000)
Release(d7)
:main
If(GetDigital(d8) = 0)
Goto(hit)
Goto(main)
:hit
Servo(d7,80)
Sleep(1500)
say("Nice Shot")
Servo(d7,38)
Sleep(500)
Release(d7)
return()
By urbanh
— Last update