diff options
author | Martin Ashby <martin@martin-laptop.lan> | 2018-05-28 16:57:07 +0100 |
---|---|---|
committer | Martin Ashby <martin@martin-laptop.lan> | 2018-05-28 16:57:07 +0100 |
commit | efe8866f28f229446440c6d871e4f9845a97266f (patch) | |
tree | 4ea2ccd1bf964809c8b6528e29d2c7f34286fa96 /unicorn/FakeUnicorn2.go | |
parent | f20896ef3b147ac07769eb36c67ba436c6d2ed22 (diff) | |
download | unicornpaint-efe8866f28f229446440c6d871e4f9845a97266f.tar.gz unicornpaint-efe8866f28f229446440c6d871e4f9845a97266f.tar.bz2 unicornpaint-efe8866f28f229446440c6d871e4f9845a97266f.tar.xz unicornpaint-efe8866f28f229446440c6d871e4f9845a97266f.zip |
Added build tags. Builds & runs OK on RPi (can show test animation)
Diffstat (limited to 'unicorn/FakeUnicorn2.go')
-rw-r--r-- | unicorn/FakeUnicorn2.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/unicorn/FakeUnicorn2.go b/unicorn/FakeUnicorn2.go index 27629d2..1b53376 100644 --- a/unicorn/FakeUnicorn2.go +++ b/unicorn/FakeUnicorn2.go @@ -1,3 +1,5 @@ +// +build linux,386 linux,amd64 + package unicorn import ( @@ -37,6 +39,10 @@ func (u *FakeUnicorn2) renderImage(im image.Image) { u.renderer.Present() } +func (u *FakeUnicorn2) StartRender() chan bool { + return u.StartRenderBase(u.renderImage) +} + func NewUnicorn2() (*FakeUnicorn2, error) { baseFake, err := NewBaseFakeUnicorn(300, 300) if err != nil { |