Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for non-feather hosts #71

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Source/CanBusWing/Driver/CanBusWing.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,21 @@
interruptPort: feather.Pins.D10.CreateDigitalInterruptPort(InterruptMode.EdgeFalling),
oscillator: CanOscillator.Osc_16MHz)
{ }

/// <summary>
/// Creates a CanBusWing driver
/// </summary>
public CanBusWing(
ISpiBus spiBus,
IPin chipSelectPin,
IPin? interruptPin = null,
IPin? resetPin = null)
: base(
bus: spiBus,
chipSelectPin: chipSelectPin,

Check failure on line 33 in Source/CanBusWing/Driver/CanBusWing.cs

View workflow job for this annotation

GitHub Actions / build

The best overload for '.ctor' does not have a parameter named 'chipSelectPin'

Check failure on line 33 in Source/CanBusWing/Driver/CanBusWing.cs

View workflow job for this annotation

GitHub Actions / build

The best overload for '.ctor' does not have a parameter named 'chipSelectPin'
interruptPin: interruptPin,
resetPin: resetPin,
oscillator: CanOscillator.Osc_16MHz)
{ }
}
}
Loading