Browse Source

machine/itsybitsy-m0: set pins and pin mode mapping for i2c0 bus

Signed-off-by: Ron Evans <ron@hybridgroup.com>
pull/259/head
Ron Evans 6 years ago
parent
commit
85f2ef40f8
  1. 5
      src/machine/board_itsybitsy-m0.go

5
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

Loading…
Cancel
Save