brew tap tinygo-org/tools
brew install tinygo
brew tap ArmMbed/homebrew-formulaetinygo build -o firmware.hex -target=pinetime-devkit0 /Users/leesander/go/src/github.com/leesander1/gotime/cmd/smartwatchtinygo build -o firmware.hex -target=pinetime-devkit0 /Users/leesander/go/src/github.com/leesander1/gotime/cmd/example/blinktinygo flash -target=pinetime-devkit0 -programmer=stlink /Users/leesander/go/src/github.com/leesander1/gotime/cmd/smartwatchopenocd \
-c 'source [find interface/stlink.cfg]' \
-c 'transport select hla_swd' \
-c 'source [find target/nrf52.cfg]' \
-c 'init' \
-c 'halt' \
-c 'nrf5 mass_erase' \
-c 'program firmware.hex verify' \
-c 'reset' \
-c 'exit'openocd \
-c 'source [find interface/stlink.cfg]' \
-c 'transport select hla_swd' \
-c 'source [find target/nrf52.cfg]' \
-c 'init' \
-c 'halt' \
-c 'nrf5 mass_erase' \
-c 'exit'