update for PR in progress
This commit is contained in:
parent
243b52bb41
commit
6c8a16ecef
1 changed files with 16 additions and 15 deletions
|
|
@ -190,7 +190,7 @@ class PulseGroup:
|
||||||
|
|
||||||
buf = array.array("L", make_sequence())
|
buf = array.array("L", make_sequence())
|
||||||
|
|
||||||
self._sm.start_continuous_write(buf)
|
self._sm.background_write(loop=buf)
|
||||||
|
|
||||||
def _maybe_update(self):
|
def _maybe_update(self):
|
||||||
if self._auto_update:
|
if self._auto_update:
|
||||||
|
|
@ -237,6 +237,7 @@ class CyclicSignal:
|
||||||
self._phase = (self._phase + delta) % 1
|
self._phase = (self._phase + delta) % 1
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
pulsers = PulseGroup(board.SERVO_1, 18, auto_update=False)
|
pulsers = PulseGroup(board.SERVO_1, 18, auto_update=False)
|
||||||
servos = [servo.Servo(p) for p in pulsers]
|
servos = [servo.Servo(p) for p in pulsers]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue