Newbie help. RGB Led on a PIC10F202


Results 1 to 40 of 42

Threaded View

  1. #13
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default Re: Newbie help. RGB Led on a PIC10F202

    Now let's make sure that button is working. Modify the main to be this:
    Code:
    main:
    Gosub red
    If button =1 then goto skipgreen
    Gosub green
    Skipgreen:
    Gosub blue
    Goto main
    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)
    Last edited by cncmachineguy; - 14th August 2011 at 04:52.
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts