Hello,
I would like to create a 15 Hz signal from Teensy 3.2 with 20% duty cycle. I would assume using delay() in loop will not be very efficient, can I please get recommendations on how to program this?
Thanks
I am also able to create a 15 Hz pulse using the following code, but how do I get the pulse timestamp?
Code:analogWriteFrequency(5, 15); analogWrite(5, 128);
You can also try a pin interrupt which store millis() or micros().
You can also try a pin interrupt which store millis() or micros().