mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-07-26 10:38:41 +00:00
i2csoft: fix Configure()
This commit is contained in:
+2
-2
@@ -53,10 +53,10 @@ func (i2c *I2C) Configure(config I2CConfig) error {
|
||||
}
|
||||
|
||||
// enable pins
|
||||
i2c.sda.High()
|
||||
i2c.sda.Configure(machine.PinConfig{Mode: machine.PinOutput})
|
||||
i2c.scl.High()
|
||||
i2c.sda.High()
|
||||
i2c.scl.Configure(machine.PinConfig{Mode: machine.PinOutput})
|
||||
i2c.scl.High()
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user