If you use Tone()
you'll also get compile errors on native Particle devices since the function call would actually be tone()
.
However, I'm not sure it's fully supported since I can't see any documentation on the PWM enabled pins on RPi.
You may also want to have a look at this post
2 Likes