Skip to content
raspberry-sharp edited this page Oct 15, 2012 · 23 revisions

Introduction

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 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.

Requirements

Access to GPIO pins requires elevated privileges that may be obtained using sudo command.

Example

Raspberry.IO.GeneralPurpose

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]
Pin settings

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)
Parameters
  • 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 from led 1 to led 6
  • width: the number of leds involved in the chaser
  • speed: the chaser movement speed, in milliseconds between two steps
  • driver: the connection driver, either memory or file