mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-17 21:23:58 +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
|
// enable pins
|
||||||
i2c.sda.High()
|
|
||||||
i2c.sda.Configure(machine.PinConfig{Mode: machine.PinOutput})
|
i2c.sda.Configure(machine.PinConfig{Mode: machine.PinOutput})
|
||||||
i2c.scl.High()
|
i2c.sda.High()
|
||||||
i2c.scl.Configure(machine.PinConfig{Mode: machine.PinOutput})
|
i2c.scl.Configure(machine.PinConfig{Mode: machine.PinOutput})
|
||||||
|
i2c.scl.High()
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user