Particle Compile on P1?

Looking at the documentation for the CLI command “particle compile”, the P1 is missing from the list?
https://docs.particle.io/reference/cli/#particle-compile

While somewhat alike the Photon, the code won’t compile if you use any of the P1 specific pins (P1S1 and such). Any tricks to compile for the P1?

@jenschr, try specifying p1 instead of P1 as the device type. Seems to work for me.

@jenschr particle compile p1 filename is the command I use to compile for P1. If you are using pins named P1S1, the code won’t work for compiling on Photon platform as these pins names don’t exist.

1 Like

ahh. they’ve just forgotten to add it to the Docs then :slight_smile: