Quick question. From the Particle docs: “tone() generates a square wave of the specified frequency and duration”. What would it take to support other waveforms, such as sine, sawtooth, triangle,…?
Thanks!
Quick question. From the Particle docs: “tone() generates a square wave of the specified frequency and duration”. What would it take to support other waveforms, such as sine, sawtooth, triangle,…?
Thanks!
@amacasas, the tone() function uses a digital pin so other waveforms are not supported. There is, however, a DAC (digital to analog) output which can be used for voltage/time varying outputs such as the ones you list. I have not seen any code for your specific application in the forums so you’ll need to cook your own.