MCPcopy Create free account
hub / github.com/Makerfabs/PICO_Merchanical_Hand_Driver / test

Function test

Arm6axis/pio_servo.py:68–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66
67
68def test():
69
70 servo = PIO_SERVO(0, 16)
71 # servo.set(180)
72 # servo.set_ms(1.5)
73 while 0:
74 time.sleep(3)
75 while 1:
76
77 # servo.set(T_Y180)
78 servo.set_ms(0.5)
79
80 time.sleep(3)
81
82 # servo.set(T_Y0)
83 servo.set_ms(2.5)
84
85 time.sleep(3)
86
87
88#test()

Callers

nothing calls this directly

Calls 2

set_msMethod · 0.95
PIO_SERVOClass · 0.85

Tested by

no test coverage detected