wok-next diff python-pyglow/stuff/pyglow @ rev 21592

updated dkms (2.1.1.2 -> 2.8.2)
author Hans-G?nter Theisgen
date Wed Jun 24 07:35:54 2020 +0100 (2020-06-24)
parents c03f2c599ef4
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/python-pyglow/stuff/pyglow	Wed Jun 24 07:35:54 2020 +0100
     1.3 @@ -0,0 +1,29 @@
     1.4 +#!/bin/sh
     1.5 +#
     1.6 +# Tiny wrapper to Python Pimorini (vortex.py) and Pyglow examples
     1.7 +#
     1.8 +
     1.9 +ex="/usr/share/pyglow"
    1.10 +
    1.11 +# Make sure we have i2c-* module loaded
    1.12 +if ! lsmod | grep -q 'i2c_dev'; then
    1.13 +	modprobe i2c-bcm2708
    1.14 +	modprobe i2c-dev
    1.15 +fi
    1.16 +
    1.17 +case "$1" in
    1.18 +	'test') 
    1.19 +		python ${ex}/test.py ;;
    1.20 +	cpu) 
    1.21 +		python ${ex}/cpu.py ;;
    1.22 +	clock) 
    1.23 +		python ${ex}/clock.py ;;
    1.24 +	set-leds) 
    1.25 +		python ${ex}/set_leds.py ;;
    1.26 +	vortex)
    1.27 +		python ${ex}/vortex.py ;;
    1.28 +	*) 
    1.29 +		echo "Usage: $(basename $0) [test|cpu|clock|set-leds|vortex]" ;;
    1.30 +esac
    1.31 +
    1.32 +exit 0