LED brightness control thru PIC...
wouter van ooijen & floortje hanneman email (remove spam text)
Now in my code, every time I come around in the main loop, I would
alternate the output between V1 and V3. Bright LEDs would get set
all the time (both times), and dim LED's would get set only on alternate
cycles -- sort of like a pulse-width dimmer.
Seems OK, assuming that there is no even pattern in your main loop cycle
times. BTW an 872 has PWM hardware....
Wouter van Ooijen
Van Ooijen Technische Informatica: http://www.voti.nl
Jal compiler, Wisp programmer, WLoader bootloader, PICs kopen
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics
See also: www.piclist.com/techref/displays.htm?key=led
You must be a member of the
piclist mailing list
(not only a www.piclist.com member) to post to the