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

python-rpi-pyglow: fix typo
author Christophe Lincoln <pankso@slitaz.org>
date Thu Apr 24 03:05:04 2014 +0200 (2014-04-24)
parents 96b7a0fabed3
children 7b9df94be9aa
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 'i2c_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