noobie to PICs and PBPro... Programming question.


Results 1 to 4 of 4

Threaded View

  1. #2
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Smile

    >>high led[1]

    led[1] is a bit which means that it can be either 1 or 0 (led[8] also can be only 1 or 0 so it does the same thing). When led[1] is used with High command this equates to

    High 0 ' RB0 = 1 (if led[1] = 0)
    or
    High 1 ' RB1 = 1 (if led[1] = 1)

    no matter what element from your LED array you use, they all are either 0 or 1, which means they only change RB0 or RB1. Further, you have RB0 and RB1 set as inputs so i am sure you are not seeing outputs. You also have not initialized the values of led[X] so you do not know if they are 1's or 0's.

    This thread might help you do what you want (after you blink a few LEDs first using variables and values):

    http://www.picbasic.co.uk/forum/showthread.php?t=4074
    Last edited by paul borgmeier; - 25th October 2007 at 02:12. Reason: grammer fix and comment upgrade in High commands
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

Similar Threads

  1. PBPro for 16-bit PICs (24F/24H/DSPICs)?
    By Sergeant in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 20th April 2007, 20:18

Members who have read this thread : 0

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