raspberry-sharp/raspberry-sharp-io

Is the MCP3008 sample correct?

AnderssonPeter opened this issue · 0 comments

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?