Files
llgo/_demo/embed/hello-esp32/main.go

17 lines
223 B
Go
Raw Normal View History

2025-09-02 20:06:48 +08:00
package main
import "github.com/goplus/lib/c"
func myprint(s *c.Char) {
for i := 0; i < int(c.Strlen(s)); i++ {
WriteByte(byte(c.Index(s, i)))
}
}
func main() {
for {
myprint(c.Str("hello world"))
sleep(1)
}
}