Updated text-example.cc for stream and brightness

Hello all,

I have updated the text-example.cc to read the text to display and the brightness from a file.
This way we can change the text and the brightness on the fly.

text-example.cc

if you use -t ABCD it will display ABCD or if you use -t stream it will read from the file.
you can specify the file with -T

You can specify the brightness file with -b and it will read form the file when you use --led-brightness=1
Fell free to use/update where ever you want.

if you don’t specify the files, it is reading from:
Text: /var/local/stream.txt
Brightness: /var/local/brightness

Best regards

1 Like