mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-03 22:47:47 +00:00
18 lines
258 B
Go
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`)
|
|
}
|
|
}
|