Documentation ¶
Overview ¶
Package unicornhd implements interfacing code to Pimoroni's Unicorn HD hat.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dev ¶
type Dev struct {
// contains filtered or unexported fields
}
Dev represents a Unicorn HAT HD (https://shop.pimoroni.com/products/unicorn-hat-hd) connected over a SPI port.
func NewUnicornhd ¶
New returns a unicornHD driver that communicates over SPI.
The SPI port speed must be 9MHz and the SPI mode, 0, as in the python example library.
func (*Dev) ColorModel ¶
ColorModel implements devices.Display. There's no surprise, it is color.RGBAModel.
func (*Dev) Draw ¶
Draw implements devices.Display.
Using something else than image.NRGBA is 10x slower. When using image.NRGBA, the alpha channel is ignored.
Click to show internal directories.
Click to hide internal directories.