Advice please - data tables


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Early1's Avatar
    Early1 Guest


    Did you find this post helpful? Yes | No

    Default

    That is exactly what I meant.

    All I need now is for some one to help me with my little problem.

    Cheers

  2. #2
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    974


    Did you find this post helpful? Yes | No

    Default How about

    Pattern: var byte ' hold the pattern for PortB
    Gen0: var byte ' general purpose reg

    ChasePattern: data 129, 66, 36, 24, 36, 66,129, -1

    OutPattern:
    Gen0 = ChasePattern ' Gen0 is a pointer to the pattern
    while 1 ' forever
    read Gen0, Pattern
    if Pattern = -1 then ' this is the end marker,
    goto OutPattern ' see it, start over
    else
    PortB = Pattern
    endif
    wend

    Mind you, you need to configure PortB as outputs etc. which I havent done for you.
    Sorry I cannot find how to format the code even though I have done it earlier.

    Jerson

  3. #3
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    Jerson,

    Thanks for replying. I started a new thread last night and have a similar suggestion from Steve using for next loops, but I'll also try your suggestion of using the while and wend commands and adding an end of line marker such as -1 (its all go practice )

Similar Threads

  1. Using Nokia LCD
    By BobP in forum mel PIC BASIC Pro
    Replies: 300
    Last Post: - 3rd May 2018, 04:47
  2. Read/Write Problem
    By Tobias in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 10th February 2010, 01:51
  3. Big characters on HD44780 4x20
    By erpalma in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 7th January 2007, 02:21
  4. LCD + bar graph
    By DynamoBen in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 5th October 2005, 14:50
  5. Sinus calculating !
    By Don Mario in forum mel PIC BASIC Pro
    Replies: 29
    Last Post: - 28th November 2004, 23:56

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