pickit2 demo lesson 7 minus one LED

Discussion in 'Embedded Systems and Microcontrollers' started by IONS, May 2, 2011.

  1. IONS

    Thread Starter New Member

    May 2, 2011
    Hi, I would just like to run 3 LED's instead of 4 as the PicKit2 quick start demo lesson program is set up.This is where one LED chases around to three other LED's and returns back to the first LED and if pushing the button,it reverses direction.The control pot will control the blinking rate.Please let me know what changes in the assembly code are needed to accomplish this task.

    Thank You for your help,I'm still trying to learn how all this stuff works.

  2. be80be

    Distinguished Member

    Jul 5, 2008
    The way that code works it loads the whole portc, you could mask off the led you don't want.

    Or just start over and write your own code that just rotates 3 leds
  3. t06afre

    AAC Fanatic!

    May 11, 2009
    Last edited: May 3, 2011