wok-next view python-rpi-pyglow/stuff/pyglow @ rev 20199

Up firmware (fix some multiline or empty descriptions), gettext, gtk-theme-blackbird, libmpd, libmpdclient, openbox & openbox-max (keep default Clearlooks theme), xfce4-icon-theme, xfce4-taskmanager, xfmpc. terminal -> xfce4-terminal, xfce4-ristretto -> ristretto (weird, but we agreed to call packages according to sources tarballs).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 03 16:28:49 2017 +0200 (2017-11-03)
parents 7b9df94be9aa
children
line source
1 #!/bin/sh
2 #
3 # Tiny wrapper to Python Pimorini (vortex.py) and Pyglow examples
4 #
6 ex="/usr/share/pyglow"
8 # Make sure we have i2c-* module loaded
9 if ! lsmod | grep -q 'i2c_dev'; then
10 modprobe i2c-bcm2708
11 modprobe i2c-dev
12 fi
14 case "$1" in
15 'test')
16 python ${ex}/test.py ;;
17 cpu)
18 python ${ex}/cpu.py ;;
19 clock)
20 python ${ex}/clock.py ;;
21 set-leds)
22 python ${ex}/set_leds.py ;;
23 vortex)
24 python ${ex}/vortex.py ;;
25 *)
26 echo "Usage: $(basename $0) [test|cpu|clock|set-leds|vortex]" ;;
27 esac
29 exit 0