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

Improve pyglow support
author Christophe Lincoln <pankso@slitaz.org>
date Thu Apr 24 20:43:02 2014 +0200 (2014-04-24)
parents bbfc89f2eaa6
children c03f2c599ef4
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-dev module loaded
9 if ! lsmod | fgrep -q 'i2c_dev'; then
10 modprobe i2c-dev
11 fi
13 case "$1" in
14 'test')
15 python ${ex}/test.py ;;
16 cpu)
17 python ${ex}/cpu.py ;;
18 clock)
19 python ${ex}/clock.py ;;
20 set-leds)
21 python ${ex}/set_leds.py ;;
22 vortex)
23 python ${ex}/vortex.py ;;
24 *)
25 echo "Usage: $(basename $0) [test|cpu|clock|set-leds|vortex]" ;;
26 esac
28 exit 0