Main Site Documentation

PIezo on Cobra question


I am a bit confused on using the piezo on the Corbra board.
It is connected to IO10, but that is not a PWM pin.
From some searching i have done, using the piezo uses the PWM and i should use .Play for it.

So how do i get the piezo to make sound on the Corbra since it not connected on a PWM pin?



There is dedicate piezo method in Utilities class


yes, but how do you configure the pin ?
its confusing to me, as some examples use PWM, yet its not a PWM pin.


Just call that method, nothing to configure


Dam, that was easy!!

but what if i want a tone constantly.