Skip to content

Go library for the Pimoroni Mote plug and play USB APA102 controller

License

Notifications You must be signed in to change notification settings

johnmccabe/mote

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.