pulseio module contains classes to provide access to basic pulse IO.
All libraries change hardware state and should be deinitialized when they
are no longer needed. To do so, either call
deinit() or use a
import pulseio import time from board import * with pulseio.PWMOut(D13) as pin: pin.duty_cycle = 2 ** 15 time.sleep(0.1)