PWM_SET_DUTY_NS = 0x36
PWM_GET_DUTY_NS = 0x37
- # UART
- UART0_INIT = 0x50
- UART0_DEINIT = 0x51
- UART0_WRITE = 0x52
- UART0_READ = 0x53
-
def __init__(self):
self._hid = hid.device()
self._hid.open(Pico_u2if.VID, Pico_u2if.PID)
# init
if not self._neopixel_initialized:
# deinit any current setup
+ # pylint: disable=protected-access
self._hid_xfer(bytes([self.WS2812B_DEINIT]))
resp = self._hid_xfer(
bytes(
# ----------------------------------------------------------------
# PWM
# ----------------------------------------------------------------
- # pylint: disable=unused_argument
+ # pylint: disable=unused-argument
def pwm_configure(self, pin, frequency=500, duty_cycle=0, variable_frequency=False):
"""Configure PWM."""
self.pwm_deinit(pin)