A tft addin for pbp3


Closed Thread
Results 1 to 40 of 142

Hybrid View

  1. #1
    Join Date
    May 2013
    Location
    australia
    Posts
    2,644


    Did you find this post helpful? Yes | No

    Default Re: A tft addin for pbp3

    try again got my x's and y's the wrong way round obviously


    Code:
                x0=   x  coordinate 
                y0=   y  coordinate
                GOSUB drawpixel

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: A tft addin for pbp3

    Thanks again Richard,

    Awesome work you got here!

    Cant wait to get the display and test it out

    Regards
    Rui

  3. #3
    Join Date
    May 2013
    Location
    australia
    Posts
    2,644


    Did you find this post helpful? Yes | No

    Default Re: A tft addin for pbp3

    changing the xy vars to words meant all the usercommand macros need to be changed too , I missed some .

    the flash addin no works nicely if anyones interested
    Attached Files Attached Files

  4. #4


    Did you find this post helpful? Yes | No

    Default Re: A tft addin for pbp3

    Hi guys,

    I dont have my TFT yet, but i tryed to compile the TFT-Demo.pbp file using the same pic Richard used ( 18F87J11 ) but i get lots of compile errors.
    One of them is with the FONT7x8 include file.

    Can everyone compile the file without any errors?
    Do we have to do something in between or are these files plug-and-play?

    Regards
    Rui

  5. #5
    Join Date
    May 2013
    Location
    australia
    Posts
    2,644


    Did you find this post helpful? Yes | No

    Default Re: A tft addin for pbp3

    the demo has the following includes

    Code:
      INCLUDE "TFT_SPI.pbpmod"        ;glcdc
        include "tft-ILI9431.bas"  ; or    include "tft-ST7735.bas"
    
        INCLUDE "DT_INTS-18.bas"
        INCLUDE "ReEnterPBP-18.bas"
        INCLUDE "Elapsed_INT-18.bas"
        INCLUDE "font7x8.bas"
        INCLUDE "duck.bas"
    make sure you have the latest version of them , if they are not located in the pbp3 dir or your current dir you need to specify the full path to each file
    if testing with pbp3 3.0.7.4


    the font file is messed up and has redundant copies included you only need 1
    I will upload a new one later
    Last edited by richard; - 14th July 2015 at 09:33.

  6. #6
    Join Date
    May 2013
    Location
    australia
    Posts
    2,644


    Did you find this post helpful? Yes | No

    Default Re: A tft addin for pbp3

    additions

    TFT_wr_mode VAR byte ;for image drawing 0= normal , 1=flip y , 2= flip x , 3=flip x and y
    ie set TFT_wr_mode to 1 to flip image on y axis when DRAWIMAGE used

    font file fixed

    demo simplified (elapsed_int commented out)
    Attached Files Attached Files

  7. #7
    Join Date
    May 2013
    Location
    australia
    Posts
    2,644


    Did you find this post helpful? Yes | No

    Default Re: A tft addin for pbp3

    forgot to add
    doVdline doHdline
    x= 196
    y= 34
    TFT_j= 312
    gosub doHdline
    will draw a dashed horizontal line from x=196 to 312 at y =34
    and a update to the flash add in

    x= 256
    y= 11
    TFT_k= 105
    gosub doVdline

    bit clunky to use I might add another couple of user commands
    Attached Images Attached Images  
    Attached Files Attached Files
    Last edited by richard; - 14th July 2015 at 10:27.

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