All Projects ā†’ mcuadros ā†’ go-rpi-ws281x

mcuadros / go-rpi-ws281x

Licence: MIT license
Go bindings for Raspberry Pi PWM library for WS281X LEDs

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to go-rpi-ws281x

Make
šŸ“–šŸ“–šŸ“–šŸ“–šŸ“– 写ē»™č½Æ件巄ē؋åøˆēœ‹ēš„ē”¬ä»¶ē¼–ēØ‹ęŒ‡å—
Stars: āœ­ 170 (+385.71%)
Mutual labels:  rpi
rpi boat utils
Utilities for Raspberry Pi, mostly for usage on a boat. Includes UART control scripts, traffic measurement tools for Mikrotik (RouterOS) and OpenWrt, AIS wireless daemon, AIS decoder and an extensible boat & IoT sensor daemon for Signal K.
Stars: āœ­ 71 (+102.86%)
Mutual labels:  rpi
rpi
Microcontroller projects (RPi, Arduino, ATTiny85, ESP, Pico, STM8/32)
Stars: āœ­ 76 (+117.14%)
Mutual labels:  rpi
Boombeastic
A Raspberry Pi based smart connected speaker with support for airplay, spotify, mpd and local playback
Stars: āœ­ 195 (+457.14%)
Mutual labels:  rpi
Cattlepi
effortlessly boot, configure, update and monitor your raspberry pi ā˜ļø
Stars: āœ­ 250 (+614.29%)
Mutual labels:  rpi
Selfhosted-Google-Photos-Alternative
A complete guide on exiting Google, Amazon or any proprietary service Photos storage with all the features you would want.
Stars: āœ­ 143 (+308.57%)
Mutual labels:  rpi
Minimu9 Ahrs
Program for reading data from the Pololu MinIMU-9 over IĀ²C. Works on the Raspberry Pi and other embedded ARM Linux boards.
Stars: āœ­ 153 (+337.14%)
Mutual labels:  rpi
rpicore
RPICoin - Proof of Stake Cryptocurrency
Stars: āœ­ 16 (-54.29%)
Mutual labels:  rpi
ceil
Helmut Hoffer von Ankershoffen experimenting with auto-provisioned RPi cluster running K8S on bare-metal
Stars: āœ­ 42 (+20%)
Mutual labels:  rpi
opencv3-setup
Raspberry Pi whiptail Menu driven Easy Install and Compile of opencv3 python from source files.
Stars: āœ­ 47 (+34.29%)
Mutual labels:  rpi
Mocs
My Own Car System, a Go & Qt application for your car
Stars: āœ­ 218 (+522.86%)
Mutual labels:  rpi
Movian
An advanced media center
Stars: āœ­ 235 (+571.43%)
Mutual labels:  rpi
acestream-openelec
Acestream engine for OpenElec / LibreElec on Raspberry Pi (2-3)
Stars: āœ­ 31 (-11.43%)
Mutual labels:  rpi
Rpi gpio
Ruby conversion of RPi.GPIO Python module
Stars: āœ­ 185 (+428.57%)
Mutual labels:  rpi
Fool
Simple Russian voice assistant based on Android Things and Raspberry Pi 3
Stars: āœ­ 26 (-25.71%)
Mutual labels:  rpi
Photoframe
Software to pull random photos from Google Photos and show them, like a photo frame
Stars: āœ­ 167 (+377.14%)
Mutual labels:  rpi
ControlBlockService2
This is the driver for the ControlBlock re.v 2.X, a power switch and input/output/gameapd gadget for the Raspberry Pi
Stars: āœ­ 18 (-48.57%)
Mutual labels:  rpi
gba-remote-play
Stream Raspberry Pi games to a GBA via Link Cable
Stars: āœ­ 356 (+917.14%)
Mutual labels:  rpi
qemu-rpi2-vexpress
QEMU emulation ARMv7
Stars: āœ­ 22 (-37.14%)
Mutual labels:  rpi
thpimon
Native ESXi on Arm hardware status driver for the Raspberry Pi.
Stars: āœ­ 32 (-8.57%)
Mutual labels:  rpi

go-rpi-ws281x GoDoc

golang binding for rpi_ws281x, userspace Raspberry Pi PWM library for WS281X LEDs. Supports any Raspberry and WS2812, SK6812RGB and SK6812RGBW LEDs strips, this includes Unicorn pHAT and NeoPixels

Installation

The recommended way to install go-rpi-ws281x is:

go get github.com/mcuadros/go-rpi-ws281x
cd $GOPATH/src/github.com/mcuadros/go-rpi-ws281x/vendor/rpi_ws281x
scons

Requires having install golang and scons (on raspbian, apt-get install scons).

Examples

// create a new canvas with the given width and height, and the config, in this
// case the configuration is for a Unicorn pHAT (8x4 pixels matrix) with the
// default configuration
c, _ := ws281x.NewCanvas(8, 4, &ws281x.DefaultConfig)


// initialize the canvas and the matrix
c.Initialize()

// since ws281x implements image.Image any function like draw.Draw from the std
// library may be used with it.
// 
// now we copy a white image into the ws281x.Canvas, this turn on all the leds
// to white
draw.Draw(c, c.Bounds(), image.NewUniform(color.White), image.ZP, draw.Over)

// render and sleep to see the leds on
c.Render()
time.Sleep(time.Second * 5)

// don't forget close the canvas, if not you leds may remain on
c.Close()

Check the folder examples folder for more examples

License

MIT, see LICENSE

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].