mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-20 04:19:04 +00:00
machine/rp2040: add I2C support (#2013)
machine/rp2040: add i2c support
This commit is contained in:
committed by
GitHub
parent
cfae2d4f9a
commit
4f7b23c2b7
@@ -9,6 +9,15 @@ const (
|
||||
xoscFreq = 12 // MHz
|
||||
)
|
||||
|
||||
// I2C Pins.
|
||||
const (
|
||||
I2C0_SDA_PIN = GPIO24
|
||||
I2C0_SCL_PIN = GPIO25
|
||||
|
||||
I2C1_SDA_PIN = GPIO2
|
||||
I2C1_SCL_PIN = GPIO3
|
||||
)
|
||||
|
||||
// SPI default pins
|
||||
const (
|
||||
// Default Serial Clock Bus 0 for SPI communications
|
||||
|
||||
Reference in New Issue
Block a user