There are some threads that do ask about porting code from Adruino to Particle, so a quick search might bring up some
https://community.particle.io/search?q=porting%20arduino
Like this one in particular
There are some threads that do ask about porting code from Adruino to Particle, so a quick search might bring up some
https://community.particle.io/search?q=porting%20arduino
Like this one in particular