Blinking addressable LED with Pic16

Status
Not open for further replies.

drkidd22

Member
I have a project going that will light up a single selected LED on an addressable LED strip (WS2813B) using the microchip CLC on the PIC16F18877.
To light up the desired led a packet is sent over the UART to the pic with commands to set the led position, color, and led brightness.

My next step is to blink the LED at 3 different settings, 1Hz, 2Hz, and 3Hz. This will also be sent as a command over the serial packet to the PIC.
I want the PIC to handle the blinking instead of looping the same serial packet over the serial line, makes sense?
What would be a good approach to get this done? using timer, delay, interrupt?
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…