mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-19 14:14:00 +00:00
wifinina: small timing adjustments in Configure() to better ensure device reset
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
@@ -151,12 +151,12 @@ func (d *Device) Configure() {
|
|||||||
d.GPIO0.High()
|
d.GPIO0.High()
|
||||||
d.CS.High()
|
d.CS.High()
|
||||||
d.RESET.Low()
|
d.RESET.Low()
|
||||||
time.Sleep(1 * time.Millisecond)
|
time.Sleep(10 * time.Millisecond)
|
||||||
d.RESET.High()
|
d.RESET.High()
|
||||||
time.Sleep(1 * time.Millisecond)
|
time.Sleep(750 * time.Millisecond)
|
||||||
|
|
||||||
d.GPIO0.Low()
|
d.GPIO0.Low()
|
||||||
d.GPIO0.Configure(machine.PinConfig{Mode: machine.PinInput})
|
d.GPIO0.Configure(machine.PinConfig{Mode: machine.PinInputPullup})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user