How can I write directly to the PWM ports? I'm working on a lightning routine and changing it via normal means is not responsive enough.
Something like analogWrite(some pin number, some byte).
--Colin
Write directly to PWM pin?
Re: Write directly to PWM pin?
Roberto?
Re: Write directly to PWM pin?
Yes.
Use analogWrite...
Use analogWrite...
Code: Select all
analogWrite(daylightPWMPin,255);
analogWrite(actinicPWMPin,255);
Roberto.
Re: Write directly to PWM pin?
Thanks! That's much better. Now I just need to figure out a good lightning algorithm.