-
Notifications
You must be signed in to change notification settings - Fork 616
Labels
area-System.Device.GpioContains types for using general-purpose I/O (GPIO) pinsContains types for using general-purpose I/O (GPIO) pinsenhancementNew feature or requestNew feature or request
Description
Similar to the GpioController, there needs to be a mechanism to determine the best SpiDevice to use.
Updated 6/24/2019
Proposed Changes
1. Add New SpiController
The creation of devices with a new static helper method that attempts to pick the best SPI device for OS app is executing on. This static method will be added to a new sealed partial class respective to OS.
// SpiController.Linux.cs
public static SpiDevice Create(SpiConnectionSettings settings) => new UnixSpiDevice(settings);
// SpiController.Windows.cs
public static SpiDevice Create(SpiConnectionSettings settings) => new Windows10SpiDevice(settings);Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-System.Device.GpioContains types for using general-purpose I/O (GPIO) pinsContains types for using general-purpose I/O (GPIO) pinsenhancementNew feature or requestNew feature or request