machine/rp2040: add I2C support (#2013)

machine/rp2040: add i2c support
This commit is contained in:
Patricio Whittingslow
2021-08-06 12:22:50 -03:00
committed by GitHub
parent cfae2d4f9a
commit 4f7b23c2b7
6 changed files with 522 additions and 9 deletions
+5 -2
View File
@@ -49,8 +49,11 @@ const (
// I2C pins
const (
SDA_PIN Pin = GPIO12
SCL_PIN Pin = GPIO13
I2C0_SDA_PIN Pin = GPIO12
I2C0_SCL_PIN Pin = GPIO13
I2C1_SDA_PIN Pin = GPIO18
I2C1_SCL_PIN Pin = GPIO19
)
// SPI pins. SPI1 not available on Nano RP2040 Connect.