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

Is the MCP3008 sample correct? #100

Open
AnderssonPeter opened this issue Mar 6, 2018 · 0 comments
Open

Is the MCP3008 sample correct? #100

AnderssonPeter opened this issue Mar 6, 2018 · 0 comments

Comments

@AnderssonPeter
Copy link

https://github.com/raspberry-sharp/raspberry-sharp-io/blob/master/Tests/Test.Gpio.MCP3008/Program.cs

Has the following code:

const ConnectorPin adcClock = ConnectorPin.P1Pin12;
const ConnectorPin adcMiso = ConnectorPin.P1Pin16;
const ConnectorPin adcMosi = ConnectorPin.P1Pin18;
const ConnectorPin adcCs = ConnectorPin.P1Pin22;

and the following comment:

/// <summary>
/// Freely adapted from http://learn.adafruit.com/reading-a-analog-in-and-controlling-audio-volume-with-the-raspberry-pi/overview
/// Connected pins are the same as in the original sample.
/// </summary>

But if i follow the link they are using
PIN18 BCM 24
PIN23 BCM11 (SCLK)
PIN24 BCM 8 (CE0)
PIN25 GROUD

Is this still correct and if that is the case how do you map between ConnectorPin and the physical pin number?

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