From 734adb6df867fd3f1d7a1ba6a02eb0f1fc7de317 Mon Sep 17 00:00:00 2001 From: sago35 Date: Mon, 25 Oct 2021 18:22:12 +0900 Subject: [PATCH] i2csoft: fix Configure() --- i2csoft/i2csoft.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/i2csoft/i2csoft.go b/i2csoft/i2csoft.go index 093bcb2..db35043 100644 --- a/i2csoft/i2csoft.go +++ b/i2csoft/i2csoft.go @@ -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 }