code for a 16f628a:rgb led fading throught the color spectrum

Discussion in 'Programmer's Corner' started by matt99199, Apr 8, 2012.

  1. matt99199

    Thread Starter New Member

    Apr 8, 2012
    2
    0
    hi, i am very new at making c++ code. but what i need is an example with 3 different pins on the 16f628a chip that will make my led fade from red-purple on the color spectrum. i know i need some sort of pwm signal output but i have no idea how to do that.
     
  2. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,394
    1,607
    Microchip has an application note entitled "Software PWM Generation for LED Dimming and RGB Color Applications." I suspect you may want to give it a hard look.

    Find it here. Download and install it, and inside you will find the actual app note as a pdf.

    (Funny, I just answered this same question in the other area.)
     
Loading...