mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-04 15:07:46 +00:00
17 lines
338 B
Go
17 lines
338 B
Go
//go:build !esp32 && !atsamd51 && !atsame5x && !stm32f4 && !rp2040 && !nrf52840
|
|
// +build !esp32,!atsamd51,!atsame5x,!stm32f4,!rp2040,!nrf52840
|
|
|
|
package i2csoft
|
|
|
|
import (
|
|
"device"
|
|
)
|
|
|
|
// wait waits for half the time of the SCL operation interval.
|
|
func (i2c *I2C) wait() {
|
|
wait := 20
|
|
for i := 0; i < wait; i++ {
|
|
device.Asm(`nop`)
|
|
}
|
|
}
|