-
Notifications
You must be signed in to change notification settings - Fork 139
Test.Gpio.Chaser
raspberry-sharp edited this page Nov 12, 2012
·
3 revisions
Test.Gpio.Chaser
is a sample console program for Raspberry.IO.GeneralPurpose
features.
It must be started, with elevated privileges, as follow:
mono Test.Gpio.Chaser.exe [-loop] [-roundTrip] [-width ww] [-speed ss] [-driver memory|file]
That is, under Raspbian, if not running as root:
sudo mono Test.Gpio.Chaser.exe [-loop] [-roundTrip] [-width ww] [-speed ss] [-driver memory|file]
Test.Gpio.Chaser
is targeted to run with a revision 2 board having the following pins (as numbered on connector) wired:
-
P1-03
: Input (button). Acts as a switch that toggle round-trip mode. -
P1-26
: Output (led 1) -
P1-24
: Output (led 2) -
P1-22
: Output (led 3) -
P1-15
: Output (led 4) -
P1-13
: Output (led 5) -
P1-11
: Output (led 6)
On the breadboard model below, led 1 is at right and led 6 at left.
-
loop
: if set, chaser movement is made only once. If not, the chaser movement loops indefinitely. -
roundTrip
: if set, chaser movement is a round-trip between first and last led. If not, it runs fromled 1
toled 6
-
width
: the number of leds involved in the chaser -
speed
: the chaser movement speed, in milliseconds between two steps -
driver
: the connection driver, eithermemory
orfile