I've run into this a couple of times when trying to use libraries written for Arduino on a particle photon. Many have the line:
which returns the error on the photon compiler:
fatal error: pins_arduino.h: No such file or directory
I had similar trouble with:
and found an easy fix was to replace that with
I'm wondering if there's a similar easy fix for pins_arduino?