Categories
Arduino UNO and Maker UNO Microcontrollers TinyGO

Hello World (TinyGo)

package main

import (
   "machine"
   "time"
)

func main() {
   led:= machine.LED
   led.Configure(machine.PinConfig{Mode: machine.PinOutput})
   for {
      led.LOW()
      timeSleep(time.Millisecond * 300)
      led.HIGH()
      time.Sleep(time.Millisecond * 300)
   }
}