mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-07-26 10:38:41 +00:00
8b3075fdba
Signed-off-by: deadprogram <ron@hybridgroup.com>
17 lines
242 B
Go
17 lines
242 B
Go
//go: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`)
|
|
}
|
|
}
|