Hi All, here comes a Nooby question:
I noticed that use the "tone" command (which works fine) permanently disables PWM action.
Is there a way to set PWM, generate a tone (PWM stops), then stop the tone, and reinstate the PWM again?
I have a project where a LED is varied in strength using PWM, and a photo diode that picks up reflections. PWM is used to get the photodiode in the middle of measuring range before the measurement starts. The PWM value remains fixed after that.
I like to have a tone indicate the reflectivity. It is no problem to alternately use tone and switch on PWM, it does not have to be concurring.
Must be obvious - cannot find it.... TIA!