unicornhat

package module
v0.0.0-...-3e63b7f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2015 License: BSD-2-Clause Imports: 2 Imported by: 16

README

Raspberry Pi UnicornHat Golang wrapper Library

Adapted from https://github.com/pimoroni/UnicornHat (the C library)

To install,

go get github.com/DrItanium/unicornhat

in your programs include

import "github.com/DrItanium/unicornhat"

Documentation

Overview

Interface functions with the pimoroni UnicornHat

Index

Constants

View Source
const (
	Width             = 8
	Height            = 8
	PixelCount        = Width * Height
	DefaultBrightness = 55
)

Variables

This section is empty.

Functions

func ClearLEDBuffer

func ClearLEDBuffer()

func GetBrightness

func GetBrightness() byte

func Initialize

func Initialize() error

initialization of hardware

func PixelPosition

func PixelPosition(x, y int) (int, error)

func SetBrightness

func SetBrightness(brightness byte)

func SetPixelColor

func SetPixelColor(pixel int, r, g, b byte)

func Show

func Show()

Led updates

func Shutdown

func Shutdown()

Types

type Pixel

type Pixel struct {
	R, G, B byte
}

func GetPixelColor

func GetPixelColor(pixel int) *Pixel

func NewPixel

func NewPixel(r, g, b byte) *Pixel

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL