This is an old thread, so maybe it’s not of much interest now. However, I’ve just recently started learning about particle devices, and I’ve been playing with the Raspberry Pi since I wanted to have several devices talk to each other and I only have one “real” device so far.
To read analog values from an MCP3008, I think it would work to write a normal C program using libraries like WiringPi and then have the particle script run it as process:
There might be a little extra overhead to spawn a process for every measurement, but typical applications probably don’t work the processor that hard.
I haven’t tried this yet, but I will probably be wanting my Raspberry Pi to read values from a USB temperature sensor. Having the Particle program read it directly sounds daunting, but I already have utility that can be called from a shell script.