A tft addin for pbp3


Closed Thread
Results 1 to 40 of 142

Hybrid View

  1. #1
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default Re: A tft addin for pbp3

    And for "Constant String" I don't know how to implement it with user command. But I know assembler part
    Here is use of asm macro
    PrintStr 0,0," Test Clock"
    And macro:
    Code:
    PrintStr macro x, y, Str
     local TheString, OverStr ; define local labels so you can call macro multiple times
     goto OverStr ' goto over string stored in FLASH, so processor can't execute that
    TheString ;label to get address of your string
     data Str, 0 ;add string to flash at TheString address and end string with 0
    OverStr
     MOVE?CB x, _GLCD_X
     MOVE?CB x, _GLCD_SX
     MOVE?CB y, _PosY
     MOVE?CW TheString, _GLCD_Addr ;move addres of string to word variable, don't know how it would work with device that have more than 65535K of FLASH???
     L?CALL _GLCD_StringOut 
     endm
    ENDASM
    
    GLCD_StringOut:
    Readcode GLCD_Addr, GLCD_Char ' Get a character
    if GLCD_Char = 0 then RETURN ' Look for Null char, Stop if found
    ......
    RETURN
    This is from example for nokia 3310 lcd, that I tried to get to work with GLCD with KS0108 controler.
    Last edited by pedja089; - 22nd June 2015 at 12:55.

Similar Threads

  1. Replies: 0
    Last Post: - 25th September 2013, 18:33
  2. code examples / libraries for ILI9320 2.8" TFT LCD Module
    By longpole001 in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 6th June 2013, 08:50
  3. I really need some help with PBP3
    By Ramius in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 26th February 2012, 16:05
  4. What's with PBP3?
    By BrianT in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 10th August 2011, 17:09
  5. Experience of driving TFT screens?
    By isaac in forum General
    Replies: 1
    Last Post: - 26th September 2008, 00:15

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