Question on include files and problem with serial LCD/USB program


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,624


    Did you find this post helpful? Yes | No

    Default Re: Question on include files and problem with serial LCD/USB program

    Hi,
    If you can't set the LCD to accept data at a faster rate then there's not much else to do than try to split the messages up. Perhaps you could do somethine like
    Code:
    Message VAR BYTE[20]
    i VAR BYTE
    
    ArrayWrite Message, [16, 85, DEC RPM, 0]
    USBSERVICE
    GOSUB SendIt
    
    SendIt:
      i = 0
      While Message[i] <> 0
        USBSERVICE
        SEROUT2 Portd.3, $4054, Message[i]
        i = i + 1
      WEND
    RETURN
    That graphic LCD is also 9600baud max and my guess it needs even more data to be sent than the basic alphanumeric one so I wouldn't expect that to solve anything.

    EDIT: Ooops, still 2.50...time for an upgrade perhaps? Since you learned to love using INLCUDE to structure your code you're going to like the conditional compilation features available in PBP3.
    Last edited by HenrikOlsson; - 10th August 2012 at 13:05.

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