Shift starting position for ARRAYWRITE?


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Feb 2013
    Posts
    1,132


    Did you find this post helpful? Yes | No

    Default Re: Shift starting position for ARRAYWRITE?

    Well the situation is as follows, I have an array, which is used as a display buffer - separate routine reads data from it, decodes and sends to display.
    I want to do some text scrolling, so want to write same line of text into that array, with some offset, to create the scroll effect.
    Name:  array.jpg
Views: 698
Size:  406.8 KB

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default Re: Shift starting position for ARRAYWRITE?

    And I belive what I showed can be made to do that - not that it neccesarily is the best way to achieve your end result but never the less :-)

    Instead of "write same line of text into that array, with some offset" modify the actual display routine so that it doesn't start displaying from index 0 of the screen buffer.

  3. #3
    Join Date
    Feb 2013
    Posts
    1,132


    Did you find this post helpful? Yes | No

    Default Re: Shift starting position for ARRAYWRITE?

    Yes that is what I planned.
    To make display buffer 24 byte wide, instead of 8, and "read" it with changing offset, to achieve the scrolling effect. But this means that text data should be written into "center" of array - from 8th position to 16th.

Similar Threads

  1. bit position variable
    By dsicon in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 16th December 2012, 21:41
  2. Question about ARRAYWRITE
    By circuitpro in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 30th July 2010, 21:00
  3. Changing position of program code
    By aerostar in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 15th December 2006, 07:34
  4. how to know servo position on lcd?
    By macx75 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 23rd March 2006, 22:52
  5. Read cursors position on LCD?
    By lab310 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 13th April 2005, 13:20

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