Files
drivers/i2csoft/i2csoft_esp32.go
T
2021-11-04 15:02:21 +01:00

18 lines
258 B
Go

//go:build esp32
// +build esp32
package i2csoft
import (
"device"
)
// wait waits for half the time of the SCL operation interval. It is set to
// about 100 kHz.
func (i2c *I2C) wait() {
wait := 60
for i := 0; i < wait; i++ {
device.Asm(`nop`)
}
}