Raspberry Pi Pico and Pico W driver.
More...
This driver is known to work with the following MCUs:
- Note
- While the RP2040's datasheet claims it supports multi-master configurations by implementing bus arbitration, it does not natively support a mode where it is configured as a (multi-)master with a slave address, such that it can be addressed by other multi-masters.
-
This driver includes a workaround that uses both I²C peripherals on the RP2040. To use this driver, make sure you initialize both I²C peripherals, and connect their respective SDA and SCL pins to the same I²C bus.
- Usage
- Link the
pbdrv-mod
library with your main executable
- Call the
pb_setup()
function (from <pb-mod.h>
) during setup
- Note
- This driver is automatically enabled if the variable
PICO_PLATFORM
is equal to "rp2040"
in your CMakeLists.txt (it is by default when using the pico-sdk CMake library).
-
This driver automatically includes the stdlib extension as the pico-sdk implements the C standard library.
|
void | pb_setup () |
| Puzzle bus driver setup.
|
|
◆ pb_setup()
This function must be called from a setup/init function to initialize the I²C peripherals used by this driver.