justDIY
Active Member
I have an rgb led, common anode, and an 8pin PIC
I want to blink the rgb, in addition to having it change colors.
what I've come up with is setting the color I want on the output latches, and the blinking is performed by setting or clearing the TRIS registers for the respective bits. the blinking sometimes occurs as fast as a few khz.
the color of the rgb is controlled by a subroutine separate from the subroutine that is controlling the blinking.
so far, it is working great on the breadboard, but I'm wondering if there is some sort of long term effect, that may degrade the microcontroller?
I want to blink the rgb, in addition to having it change colors.
what I've come up with is setting the color I want on the output latches, and the blinking is performed by setting or clearing the TRIS registers for the respective bits. the blinking sometimes occurs as fast as a few khz.
the color of the rgb is controlled by a subroutine separate from the subroutine that is controlling the blinking.
so far, it is working great on the breadboard, but I'm wondering if there is some sort of long term effect, that may degrade the microcontroller?