blob: 9db2a3ec6c48921220b737246630bdf797f2df2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
A go library for interacting with Raspberry Pi Unicorn HAT HD, with a cimilar API to the official library https://github.com/pimoroni/unicorn-hat-hd
Includes a simulator when running on amd64 and 386 linux PCs.
Sample usage:
```
package main
import "github.com/MFAshby/unicornpaint/unicorn"
func main() {
uni, _ := unicorn.GetUnicorn()
defer func() { uni.Off() }()
var x, r, y, g, b uint8
x = 10
y = 10
r = 255
g = 255
b = 255
uni.SetPixel(x, y, r, g, b)
uni.Show()
uni.MainLoop()
}
```
|