Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A .NET/Mono IO Library for Raspberry Pi

NotificationsYou must be signed in to change notification settings

raspberry-sharp/raspberry-sharp-io

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

See theRaspberry# IO Wiki for full documentation and samples.

Introduction

Raspberry# IO is a .NET/Mono IO Library for Raspberry Pi. This project is an initiative of theRaspberry# Community.

Current release is an early public release. Some features may not have been extensively tested.Raspberry# IO currently supports GPIO input/output, and samples with SPI (for MCP3008 ADC or MCP4822 DAC), I2C (for MCP23017 I/O Expander), HD44780 LCD display and HC-SR04 distance sensor are provided.

Support for extended I/O (such as SDI, or PWM for motor control) is planned for future releases.

Programs using Raspberry# IO must be run with elevated privileges, for example the Test.Gpio.Chaser program included in solution:

sudo mono Test.Gpio.Chaser.exe -loop

Features

Raspberry.IO.GeneralPurpose

Raspberry.IO.GeneralPurpose provides a convenient way to use Raspberry Pi GPIO pins, while using .NET concepts, syntax and case.You can easily add a reference to it in your Visual Studio projects using theRaspberry.IO.GeneralPurpose Nuget.

It currently support the following features:

  • Access to GPIO pins through memory (native interop inspired fromBCM2835 C Library) or file (except for I2C) drivers
  • Addressing throughprocessor pin number or connector pin number
  • Giving custom name to pins for more readable code
  • Various Raspberry Pi revisions, for nowRaspberry B rev1 and rev2, including rev2 P5 connector
  • Easy-to-use, declarative configuration of pins. Ability to revert the polarity (1/0) of pins; ability touse an input pin as a switch button
  • Firing ofevents when pin status change (input as well as output), using polling
  • High-level behaviors for output pins, includingblink,pattern andchaser
  • Controlled use of resources using a IDisposable component
  • Support sub-millisecond polling of input pins
  • Preliminary support for SPI through Raspberry.IO.SerialPeripheralInterface assembly
  • Preliminary support for I2C through Raspberry.IO.InterIntegratedCircuit assembly
  • Prelimianry support for various components through Raspberry.IO.Components assembly
  • Includes SPI samples for MCP3008 ADC and MCP4822 DAC, I2C sample for MCP23017 I/O expander, as well as samples for HD44780 LCD display and HC-SR04 distance detector

About

A .NET/Mono IO Library for Raspberry Pi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors18

Languages


[8]ページ先頭

©2009-2025 Movatter.jp