Go Down

Topic: toneAC v1.2 library how to change the duty cyle (Read 130 times) previous topic - next topic


Sep 08, 2015, 11:52 am Last Edit: Sep 08, 2015, 11:54 am by marcomauro

I am using  toneAC v1.2 library in order to generate a square wave with frequency ranging from 300 Hz to 125000 Hz. The library designed by Tim Eckel works very well at high frequency!

But I would like to change the square wave duty cycle from 2% to 98%. It seems to me that by changing the volume in toneAC does not work for me.
Any suggestion to tweak the library ? thank you

Go Up