wok view python-rpi-pyglow/stuff/pyglow @ rev 16499

Addpython-rpi-pyglow with custom pyglow tool to easily test Pyglow (tested by myself)
author Christophe Lincoln <pankso@slitaz.org>
date Wed Apr 23 19:22:10 2014 +0200 (2014-04-23)
parents
children bbfc89f2eaa6
line source
1 #!/bin/sh
2 #
3 # Tiny wrapper to Python Pyglow examples
4 #
6 ex="/usr/share/pyglow"
8 # Make sure we have i2c-dev module loaded
9 if ! lsmod | fgrep -q 'iec_dev'; then
10 modprobe i2c-dev
11 fi
13 case "$1" in
14 cpu)
15 python ${ex}/cpu.py ;;
16 clock)
17 python ${ex}/clock.py ;;
18 set-leds)
19 python ${ex}/set_leds.py ;;
20 'test')
21 python ${ex}/test.py ;;
22 *)
23 echo "Usage: $(basename $0) [test|cpu|clock|set-leds]" ;;
24 esac
26 exit 0