RpiUno 1.0.0

The package provides fuctions for communication between Raspberry-Pi and Arduino over an I2C bus.

Install-Package RpiUno -Version 1.0.0
dotnet add package RpiUno --version 1.0.0
<PackageReference Include="RpiUno" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RpiUno --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Windows Runtime Component to enable Communication with Arduino in Windows 10 IoT Core UWPs

Install Package using Package Manager

Install-Package RpiUno -Version 1.0.0

Intall Package using .NET-Cli

dotnet add package RpiUno --version 1.0.0

The Package currently supports communication over I2C bus.

Include using RpiUno; where you need to use the package.

Modes

The package classifies Arduino operations into three modes:

  1. RecieveSensorData: Sends a byte '0' to arduino to indicate operation to receive sensor data.
  2. RecieveDeviceState: Sends a byte '1' to arduino to indicate operation to receive a Pin's state
  3. SendIOSignal: Sends a byte '2' to arduino to indicate operation to turn a pin HIGH or LOW

Read-Write to Arduino

Make an asynchronus call to ReadWriteAsync() method to perform a read or write operation on Arduino.

Turn a pin High / Low

await UnoI2C.ReadWriteAsync(&quot;Mention slave address (int)&quot;, Mode.SendIOSignal, (Pin Number as byte), PinValue.High);

Read Sensor Data

await UnoI2C.ReadWriteAsync(Mention slave address (int), Mode.RecieveSensorData, (Sensor Pin Number as byte));

Read Pin State

await UnoI2C.ReadWriteAsync(Mention slave address (int), Mode.RecieveDeviceState, (Sensor Pin Number as byte));

Windows Runtime Component to enable Communication with Arduino in Windows 10 IoT Core UWPs

Install Package using Package Manager

Install-Package RpiUno -Version 1.0.0

Intall Package using .NET-Cli

dotnet add package RpiUno --version 1.0.0

The Package currently supports communication over I2C bus.

Include using RpiUno; where you need to use the package.

Modes

The package classifies Arduino operations into three modes:

  1. RecieveSensorData: Sends a byte '0' to arduino to indicate operation to receive sensor data.
  2. RecieveDeviceState: Sends a byte '1' to arduino to indicate operation to receive a Pin's state
  3. SendIOSignal: Sends a byte '2' to arduino to indicate operation to turn a pin HIGH or LOW

Read-Write to Arduino

Make an asynchronus call to ReadWriteAsync() method to perform a read or write operation on Arduino.

Turn a pin High / Low

await UnoI2C.ReadWriteAsync(&quot;Mention slave address (int)&quot;, Mode.SendIOSignal, (Pin Number as byte), PinValue.High);

Read Sensor Data

await UnoI2C.ReadWriteAsync(Mention slave address (int), Mode.RecieveSensorData, (Sensor Pin Number as byte));

Read Pin State

await UnoI2C.ReadWriteAsync(Mention slave address (int), Mode.RecieveDeviceState, (Sensor Pin Number as byte));

Release Notes

Currently supports Arduino UNO and Mega

Dependencies

This package has no dependencies.

Version History

Version Downloads Last updated
1.0.0 74 3/31/2019