pickit2 demo lesson 7 minus one LED

Thread Starter

IONS

Joined May 2, 2011
2
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.

IONS
 

be80be

Joined Jul 5, 2008
2,072
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
 
Top