bitbangio module contains classes to provide digital protocol support
regardless of whether the underlying hardware exists to use the protocol.
First try to use
nativeio module instead which may utilize peripheral
hardware to implement the protocols. Native implementations will be faster
than bitbanged versions and have more capabilities.
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 bitbangio from board import * with bitbangio.I2C(SCL, SDA) as i2c: i2c.scan()