Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 45 lines (26 sloc) 834 Bytes
# Turn on drivers
sudo modprobe -i uinput
sleep 1s
# Init input drivers
# We use the /home/pi/drivers dir we copied locally during install to avoid a git pull collision on an
# actively in-use driver
python /home/pi/firmware/kiosk/kiosk.py &
sudo bash /home/pi/firmware/bin/system/io/input_driver.sh &
sleep 1s
# Init video driver GPIO
sudo echo "5" > /sys/class/gpio/export
sleep 1s
# Set GPIO direction
sudo echo "out" > /sys/class/gpio/gpio5/direction
sleep 1s
# Set active low, set to 0 to enable
sudo echo "0" > /sys/class/gpio/gpio5/value
sleep 1s
# Activate framebuffer
sudo /home/pi/drivers/video/fbcp-ili9341 &
# Activate LEDs
sudo /home/pi/firmware/bin/lights.sh
sudo /home/pi/drivers/leds/open_lightsocket &
sleep 1s
# Display startup LED sequence
python /home/pi/drivers/leds/light_client/lightclient.py