Skip to content

Latest commit

 

History

History
11 lines (6 loc) · 436 Bytes

File metadata and controls

11 lines (6 loc) · 436 Bytes

Hello World

Create new project and paste the following code:

package main
import (
"machine"
"time"
)
func main() {
machine.Serial.Configure(machine.UARTConfig{BaudRate: 9600})
for {
machine.Serial.Write([]byte("Hello, World!\n"))
time.Sleep(time.Second)
}
}

Run command tinygo flash -target=esp32-coreboard-v2 -port=/dev/ttyACM0 . to flash the program into your ESP32.

You must hold the BOOT button while flashing.

Now you can connect with serial console with baud rate 9600.