Skip to content

Is the MCP3008 sample correct? #100

@AnderssonPeter

Description

@AnderssonPeter

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions