Now let's make sure that button is working. Modify the main to be this:
That should have all three lit as before unless you press the button, then it should skip the green gosub. Btw, is the tris for the button set to input? Also I am a lazy typer, so I assume you will make the names be what they need to be like button shoud really be switchpin (i think)Code:main: Gosub red If button =1 then goto skipgreen Gosub green Skipgreen: Gosub blue Goto main




Bookmarks