MCPcopy Create free account
hub / github.com/DexterInd/GoPiGo3 / handle_one_servo

Function handle_one_servo

Software/Scratch/GoPiGo3Scratch.py:553–557  ·  view source on GitHub ↗
(port, angle)

Source from the content-addressed store, hash-verified

551
552
553def handle_one_servo(port, angle):
554 servo = get_sensor_instance(port, easysensors.Servo)
555 if servo:
556 servo.rotate_servo(angle)
557 return ({port:angle})
558
559
560def handle_light(regObj):

Callers 1

handle_servosFunction · 0.85

Calls 2

get_sensor_instanceFunction · 0.85
rotate_servoMethod · 0.80

Tested by

no test coverage detected