Skip to content

Latest commit

 

History

History
54 lines (34 loc) · 1.55 KB

README.md

File metadata and controls

54 lines (34 loc) · 1.55 KB

Go Report Card Badge GoDoc Badge

Mote 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

Prerequisites

OSX

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

Using

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.

Examples

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.