Buy the Mote controller & accessories here: https://shop.pimoroni.com/products/mote
This repo contains a port of the Pimoroni Mote library from Python to Go.
If you have a PHAT Mote go here: https://github.com/johnmccabe/motephat
The go.bug.st/serial/enumerator
library used to detect the Mote port requires the use of cgo on MacOSX in order to access the IOKit Framework so you will need to have XCode installed.
xcode-select --install
Import the library via:
import "github.com/johnmccabe/mote"
You can refer to the examples in the example\
directory and the GoDocs for information on using the library.
You can run the supplied example programs (ported from their Python equivalents) as follows.
go mod tidy
Then running each example as follows.
go run examples/rgb/rgb.go 255 0 0
go run examples/rainbow/rainbow.go
go run examples/cheerlights/cheerlights.go
The Golang Gopher was created by Renée French and is Creative Commons Attributions 3.0 licensed.