remote esp32s3 lockup example

This commit is contained in:
Joel Wetzell
2026-05-09 08:46:40 -05:00
parent 755ecf3829
commit c980d14d9f
2 changed files with 0 additions and 38 deletions
-3
View File
@@ -1,3 +0,0 @@
module esp32s3lockup
go 1.26.2
-35
View File
@@ -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
}
}
}