-
Notifications
You must be signed in to change notification settings - Fork 139
Home
raspberry-sharp edited this page Oct 15, 2012
·
23 revisions
Welcome on the Raspberry# IO wiki!
Raspberry# IO is a Mono/.NET library enabling use of Raspberry Pi IO features with the Mono/.NET Programming Framework.
It provides the following assemblies:
- Raspberry.IO.GeneralPurpose, providing access to Raspberry Pi GPIO pins.
Raspberry# IO is released under the GPL-2 Licence. It is a project of the Raspberry# Community, aimed at providing tools and information about Mono/.NET programming under Raspberry Pi.
Access to GPIO pins requires elevated privileges that may be obtained using sudo
command.
A sample console program is available in the GpioTest
project.
It must be started as follow:
sudo mono GpioTest.exe [-loop] [-roundTrip] [-width ww] [-speed ss] [-driver memory|file]
GpioTest
is targeted to run with a revision 2 board having the following pins (as numbered on connector) wired:
-
P1-03
: input (button) -
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)
-
loop
: if set, chaser movement is made only once. If not, the chaser movement loops indefinitely. -
roundTrip
: if set, chaser movement is a roundtrip 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