So we have one led you want to flash in a fading way.
How frequently do you want to flash it?
Do you want to do other stuff while flashing the LED? In that case what will the PIC do?
Can you put the LED on PORTB.3?
How fast do you want to fade it up and down?
How smooth do you need it, how many steps would you like the led to have on the way up and down?
Before we even try to untangle the code for this it would be nice to know that you can use this pin and get the other information as well.
/me
Bookmarks