remote esp32s3 lockup example
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
module esp32s3lockup
|
|
||||||
|
|
||||||
go 1.26.2
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
package main
|
|
||||||
|
|
||||||
import (
|
|
||||||
"machine"
|
|
||||||
"time"
|
|
||||||
)
|
|
||||||
|
|
||||||
func main() {
|
|
||||||
time.Sleep(3 * time.Second)
|
|
||||||
|
|
||||||
led := machine.GPIO37
|
|
||||||
led.Configure(machine.PinConfig{Mode: machine.PinOutput})
|
|
||||||
|
|
||||||
txDone := true
|
|
||||||
count := 0
|
|
||||||
|
|
||||||
processingCount := 0
|
|
||||||
for {
|
|
||||||
if txDone {
|
|
||||||
txDone = false
|
|
||||||
led.Set(false)
|
|
||||||
time.Sleep(249 * time.Millisecond)
|
|
||||||
led.Set(true)
|
|
||||||
println("hello world", count)
|
|
||||||
count += 1
|
|
||||||
} else {
|
|
||||||
if processingCount > 100000000 {
|
|
||||||
txDone = true
|
|
||||||
println("stall done")
|
|
||||||
processingCount = 0
|
|
||||||
}
|
|
||||||
processingCount += 1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user