wok annotate python-rpi-pyglow/stuff/pyglow @ rev 25044

*/stuff/bootloader.S: fix VCPI case
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jun 02 15:48:36 2022 +0000 (2022-06-02)
parents 7b9df94be9aa
children
rev   line source
pankso@16499 1 #!/bin/sh
pankso@16499 2 #
pankso@16511 3 # Tiny wrapper to Python Pimorini (vortex.py) and Pyglow examples
pankso@16499 4 #
pankso@16499 5
pankso@16499 6 ex="/usr/share/pyglow"
pankso@16499 7
pankso@16534 8 # Make sure we have i2c-* module loaded
pankso@16534 9 if ! lsmod | grep -q 'i2c_dev'; then
pankso@16534 10 modprobe i2c-bcm2708
pankso@16499 11 modprobe i2c-dev
pankso@16499 12 fi
pankso@16499 13
pankso@16499 14 case "$1" in
pankso@16511 15 'test')
pankso@16511 16 python ${ex}/test.py ;;
pankso@16499 17 cpu)
pankso@16499 18 python ${ex}/cpu.py ;;
pankso@16499 19 clock)
pankso@16499 20 python ${ex}/clock.py ;;
pankso@16499 21 set-leds)
pankso@16499 22 python ${ex}/set_leds.py ;;
pankso@16511 23 vortex)
pankso@16511 24 python ${ex}/vortex.py ;;
pankso@16499 25 *)
pankso@16511 26 echo "Usage: $(basename $0) [test|cpu|clock|set-leds|vortex]" ;;
pankso@16499 27 esac
pankso@16499 28
pankso@16499 29 exit 0