From 85f2ef40f83fee8869654f8b2d44ac70e71fc71b Mon Sep 17 00:00:00 2001 From: Ron Evans Date: Fri, 5 Apr 2019 15:25:11 +0200 Subject: [PATCH] machine/itsybitsy-m0: set pins and pin mode mapping for i2c0 bus Signed-off-by: Ron Evans --- src/machine/board_itsybitsy-m0.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/machine/board_itsybitsy-m0.go b/src/machine/board_itsybitsy-m0.go index 29293dfc..3c0e3d36 100644 --- a/src/machine/board_itsybitsy-m0.go +++ b/src/machine/board_itsybitsy-m0.go @@ -56,7 +56,10 @@ const ( // I2C on the ItsyBitsy M0. var ( - I2C0 = I2C{Bus: sam.SERCOM3_I2CM} + I2C0 = I2C{Bus: sam.SERCOM3_I2CM, + SDA: SDA_PIN, + SCL: SCL_PIN, + PinMode: GPIO_SERCOM} ) // SPI pins