Help with Hellebuyck reverse flashing led


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2013
    Posts
    4

    Default Help with Hellebuyck reverse flashing led

    This is what is in his book but it will not programme

    symbol led = b0
    pins = %00000000
    dirs = %11111111
    main:
    for led = 0 to 7
    high led
    pause 1000
    low led
    pause 1000
    low led
    next

    then the same only reversed

    goto main
    end

    also

    I have seached two books but I cant find what dirs means

  2. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,597


    Did you find this post helpful? Yes | No

    Default Re: Help with Hellebuyck reverse flashing led

    What PIC are you using? What PBP and assembler versions? What CONFIGs are you using?

    Robert

  3. #3
    Join Date
    Oct 2011
    Posts
    54


    Did you find this post helpful? Yes | No

    Default Re: Help with Hellebuyck reverse flashing led

    Looks like it's written for the PICAXE to me

  4. #4
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Re: Help with Hellebuyck reverse flashing led

    Quote Originally Posted by firsttimer View Post
    This is what is in his book but it will not programme

    symbol led = b0
    pins = %00000000
    dirs = %11111111
    main:
    for led = 0 to 7
    high led
    pause 1000
    low led
    pause 1000
    low led
    next

    then the same only reversed

    goto main
    end

    also

    I have seached two books but I cant find what dirs means
    Go check out Parralax basic stamp for dirs, they use it, ME Labs PBP does not.

    Use instead TRIS and flip all the bits from what dirs says.
    edit:
    Ok looking at Chuck's book it appears that PBC does indeed use dirs, I have never used PBC and I do not believe it is still available, but might be wrong in that belief. If you and I have the same book then this is Project 1 and the chip is a 16F876.
    Go to the next page and use the P Basic Pro code listed, it should work.
    Last edited by Archangel; - 31st January 2014 at 19:08.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  5. #5
    Join Date
    Dec 2013
    Posts
    4


    Did you find this post helpful? Yes | No

    Default Re: Help with Hellebuyck reverse flashing led

    Thanks the next page version worked ok.

Similar Threads

  1. Replies: 3
    Last Post: - 9th June 2012, 15:34
  2. Getting started with Chuck Hellebuyck
    By quester in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 9th March 2008, 20:10
  3. Getting started with Chuck Hellebuyck fuses
    By quester in forum mel PIC BASIC
    Replies: 4
    Last Post: - 9th March 2008, 03:47
  4. Flashing!! LED Dot matrix problem
    By chai98a in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 4th December 2006, 09:45
  5. flashing a led with TMR0
    By ely in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 21st June 2004, 21:41

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