Correct PulseOut example code

This commit is contained in:
Scott Shawcroft 2017-04-13 17:52:13 -07:00
parent f37ce1c595
commit b653c3c8fc

View File

@ -57,7 +57,7 @@
//| with pulseio.PWMOut(board.D13, duty_cycle=2 ** 15) as pwm: //| with pulseio.PWMOut(board.D13, duty_cycle=2 ** 15) as pwm:
//| pulse = pulseio.PulseOut(pwm) //| pulse = pulseio.PulseOut(pwm)
//| # on off on off on //| # on off on off on
//| pulses = array.array('h', [65000, 1000, 65000, 65000, 1000]) //| pulses = array.array('H', [65000, 1000, 65000, 65000, 1000])
//| pulse.send(pulses) //| pulse.send(pulses)
//| //|
//| # Modify the array of pulses. //| # Modify the array of pulses.