Skip to content

Latest commit

 

History

History
57 lines (39 loc) · 1.64 KB

USAGE.md

File metadata and controls

57 lines (39 loc) · 1.64 KB

RaspberryPi

Testing

You can use the test script to run a specific pattern without the connection to firebase.

First source the python path with:

source scripts/vars.sh  

Then run the test with:

sudo python src/rpi/test.py PatternName 

Remember to set the type of led strip you're using with the --strip_type argument. Choose:

  • neopixel, if you have a single data input (WS281X)
  • dotstar, if you have three (APA102/SK98225)

Remote

You can test the remote configuration running the control script which takes as mandatory inputs the credential json file and the mode (either 'pc' or 'rpi') which specify where the script is being run.

python src/firebase/connect.py credential.json rpi

PC

To test first run the gui and then in a separate process run patterns

python src/pc/gui.py
python src/pc/test.py

For the remote connection use:

python src/gui.py
python src/firebase/connect.py credential.json pc

Additional params

The control script accepts two optional arguments:

  • databaseURL : the url of your database (default value, more in the firebase tutorial)
  • pixels : the number of pixels (default 300).

To connect to a custom databaseURL with 64 leds on the rpi you should run

python src/firebase/connect.py credential.json rpi --databaseURL https://customURL.firebaseio.com/ --pixels 64