Hi, I’m trying to follow through the code examples with my newly connected Raspberry Pi.
I’m using the guide at: https://docs.particle.io/guide/getting-started/examples/raspberry-pi/
The guide is great but it doesn’t appear to be updated for the Raspberry Pi Beta, and still heavily references Particle hardware.
I made it through the LED/Web LED examples OK using this Datasheet to figure out which Pi pins correspond to Particle device pins and edit the example code accordingly.
However now I’ve gotten to the next example, the photoresistor. I’m having trouble here since the Pi doesn’t have any analog pins, and the example code is written for a Particle device that does. I do have an MCP3008 Analog-to-Digital converter chip hooked up to my Pi, but I don’t understand how to reference the CH0 through CH7 pins that it provides.
If you could help me with how to do analog input on Particle through the Pi, especially in the context of the Photoresistor example in the Getting Started guide, it would be much appreciated!