-- RPI LED Matrix driving -- the new neon
Works are started with running the player.py
player.py takes 3 arguments:
- device name
- local path to where files are (can ./ if run from inside RPI)
- the configuration to load in the form [config directory]/[config file name]
e.g.
python3 player.py -path . -mname studio -cfg prod/p4-4x7-slope-quilt..cfg&
--> Config files specify which work to play.
--> "Works" are located in the /pieces/ directory with some classes in the /modules/ directory
There is also a working TKinter demo app used to launch various works in progress
python3 cntrlscripts/demo.py&
Set up the environment:
On a Mac Python3 with Tkinter, python3-pil, numpy, noise
Lubuntu:
sudo apt-get remove xfce4-power-manager sudo apt install gnome-power-manager gsettings set org.gnome.settings-daemon.plugins.power button-power shutdown
sudo apt-get update sudo apt-get install xscreensaver sudo apt-get install git sudo apt-get install openssh-server sudo apt-get install python3-pip sudo apt-get install python3-pil.imagetk
pip3 install numpy pip3 install noise
git clone -b py3.6 https://github.com/LukeMurphy/RPI.git
mkdir ~/.config/autostart nano ~/.config/autostart/startup0.desktop
AUTOSTART
create folder & file
~/.config/autostart/startup0.desktop
[Desktop Entry]
Encoding=UTF-8
Name=startupscripto
Comment=startupscript_to_start_xscreensaver
Icon=gnome-info
Exec=xscreensaver
Terminal=false
Type=Application
Categories=
X-GNOME-Autostart-enabled=true
X-GNOME-Autostart-Delay=1
nano ~/.config/autostart/startup1.desktop
[Desktop Entry]
Encoding=UTF-8
Name=startupscript
Comment=startupscript
Icon=gnome-info
Exec=python3 /home/daemon21/Documents/RPI/player.py -mname d21 -path /home/daemon21/Documents/RPI -cfg prod/p4-6x16-chimney-2.cfg
Terminal=false
Type=Application
Categories=
X-GNOME-Autostart-enabled=true
X-GNOME-Autostart-Delay=2
TEST --
python3 player.py -mname d11 -path ~/Documents/RPI -cfg p4-8x10/repeater.cfg&