can just somebody explain how i can calculate the period that a led needs to be off and on at lets say 3.69mhz (or use something else but mention it
)
my goal is to build a function that you give a % and then the led is burning at that %
//------------ old topic -------------\\
does anyone of you people at societyofrobots know how to make an software PWM for fading a LED
my microcontroller runs at 4khz (i think this is the most easy frequency)
-> i know its something like 1micro seconde on and 3 microseconds off etc