how to implement DIM AS CODE


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: how to implement DIM AS CODE

    That would be a lookup table in PBP.

  2. #2
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: how to implement DIM AS CODE

    and you’d generate patterns like that on the fly
    Code:
    pattern var byte
    i var byte
    displayram var byte[8]
    
    pattern = %11111111
    
    for i = 0 to 7
    pattern = pattern << 1
    displayram[7-i] = pattern
    next i

Similar Threads

  1. Very quick question... To help a dim wit !!
    By andybarrett1 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 6th October 2014, 22:01
  2. Maths help for the terminally dim please
    By retepsnikrep in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 7th July 2013, 20:15
  3. question about how to implement ASM and ENDASM
    By karenhornby in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 9th March 2008, 10:21
  4. dim a led
    By fred.pacc in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 21st November 2006, 18:49
  5. Implement a timer without using an interrupt
    By coyotegd in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 26th February 2006, 19:44

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