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

Cannot use ConnectorPin 5 and 6 #109

Open
tfsonic opened this issue Jul 4, 2019 · 0 comments
Open

Cannot use ConnectorPin 5 and 6 #109

tfsonic opened this issue Jul 4, 2019 · 0 comments

Comments

@tfsonic
Copy link

tfsonic commented Jul 4, 2019

Hello together,

I'm using a Raspbery Pi 3 Model B and I have the following issue and I'm hoping that you can help me.
I would like to use Connector Pin 5 and 6 for a shutdown process.
So I have created the following instance:

InputPinConfiguration onOffBtn = ConnectorPin.P5Pin06.Input().PullDown();

onOffBtn.OnStatusChanged(state =>
{
     if (state)
        controller.Shutdown();
});

But I get always the following exception:
Unhandled Exception: System.InvalidOperationException: Connector pin P5-6 is not mapped to processor with pin layout revision Plus at Raspberry.IO.GeneralPurpose.PinMapping.ToProcessor (Raspbery.IO.GeneralPurpose.ConnectorPin pin) [0x00050] at Raspberry.IO.GeneralPurpose.PinConfigurationExtensionMethods.Input (Raspberry.IO.GeneralPurpose.ConnectorPin pin [0x00000]

I have tried a lot of steps, for example I have converted the ConnectorPin combination to a ProcessorPin, but that was not a solution for my problem.

What I'm doing wrong? Thank you so much for your help.

Greets
Timo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant