mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-12 23:13:40 +00:00
machine/itsybitsy-m0: set pins and pin mode mapping for i2c0 bus
Signed-off-by: Ron Evans <ron@hybridgroup.com>
This commit is contained in:
@@ -56,7 +56,10 @@ const (
|
|||||||
|
|
||||||
// I2C on the ItsyBitsy M0.
|
// I2C on the ItsyBitsy M0.
|
||||||
var (
|
var (
|
||||||
I2C0 = I2C{Bus: sam.SERCOM3_I2CM}
|
I2C0 = I2C{Bus: sam.SERCOM3_I2CM,
|
||||||
|
SDA: SDA_PIN,
|
||||||
|
SCL: SCL_PIN,
|
||||||
|
PinMode: GPIO_SERCOM}
|
||||||
)
|
)
|
||||||
|
|
||||||
// SPI pins
|
// SPI pins
|
||||||
|
|||||||
Reference in New Issue
Block a user