Main Site Documentation

PIezo on Cobra question


#1

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?

Thanks.


#2

There is dedicate piezo method in Utilities class


#3

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


#4

Just call that method, nothing to configure


#5

Dam, that was easy!!

but what if i want a tone constantly.


#6

OutputCompare?