Skip to content

hoverlabs/beam_raspberrypi

Repository files navigation

beam_rpi

Beam library for raspberry pi, ported from original code by Hover Labs in December(ish) 2016 by Ryan Shuttleworth, @rshuttle. Contact us at support@hoverlabs.co

Requirements

Build

make clean;make

Output in

Usage

sudo ./BeamDemo [options]

Options:

-n [1-4] set the number of beams (defaults to 1)

-s [1-15] set the frame speed (defaults to 1, 15 is slowest)

-l [1-7] set the number of frame loops (defaults to 7)

-t "some text" display text on the beam

-f "some path" load and display a frames file

-h print this help

To run a demo specify the -n [1-4] option or no options

Examples

Run Demo on 1 beam:

sudo ./BeamDemo

Run Demo on 2 beams:

sudo ./BeamDemo -n 2

Text on 1 beam:

sudo ./BeamDemo -t "my text here"

Text on 3 beams:

sudo ./BeamDemo -n 3 -t "my text here"

Custom frames:

sudo ./BeamDemo -f "./sample-frames.txt"

Custom frames on 3 beams:

sudo ./BeamDemo -n 3 -f "./sample-frames.txt"