A tft addin for pbp3


Closed Thread
Results 1 to 40 of 142

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default Re: A tft addin for pbp3

    I was looking on ebay and i could not find any 2.8" TJTCM24024.
    The only TJTCM24024 i could find is a 2.4"

    see here:
    http://www.ebay.com/itm/2-4-240x320-...item20eaff07d1

    Also the TJTCM24028:
    http://www.ebay.com/itm/240x320-2-8-...item41998b289b


    Maybe the 24028 means 2.8" and the 24024 means 2.4".

    @Richard,
    Can you double check you your display is really 2.4" or 2.8"?

    Thanks

    Regards
    Rui

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


    Did you find this post helpful? Yes | No

    Default Re: A tft addin for pbp3

    its 2.4 TJTCM24024-SPI 2.4 TFT SPI 240X320
    http://www.ebay.com.au/itm/181500077...%3AMEBIDX%3AIT

    I should be more careful cutting and pasting
    Attached Images Attached Images  

  3. #3


    Did you find this post helpful? Yes | No

    Default Re: A tft addin for pbp3

    Thanks Richard...

    Pressing buy now...

    Regards
    Rui

  4. #4
    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 2.2 board before and after the flash chip added (w25q32bv)
    Attached Images Attached Images   

  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

    did a bit more fiddling with the buttons
    we now have rounded corners and self centering title text , and self scaling title text size too.

    the flash bit now has a flasheader cmd to read image nams and x y sizes .

    this demo has the flash bits commented out

    ps the button x,y value now is the centre of the button (was bottom lh cnr) and each button can have its own size still
    Attached Files Attached Files
    Last edited by richard; - 2nd August 2015 at 10:57.

  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

    fixed touch module cs pin not initialised to unselected state on boot up and had some vars being used without being cleared first (real amateur hour stuff)
    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

    now with sliders, might try to get the touch module on the spi bus next (should then be able to read touch x,y ps about 16 times faster than bit banging with shiftin )
    Attached Files Attached Files

  8. #8


    Did you find this post helpful? Yes | No

    Default Re: A tft addin for pbp3

    Excellent work Richard

    Regards
    Rui

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


    Did you find this post helpful? Yes | No

    Default Re: A tft addin for pbp3

    FIXED again
    Attached Files Attached Files

  10. #10
    Join Date
    Oct 2009
    Posts
    583


    Did you find this post helpful? Yes | No

    Default Re: A tft addin for pbp3

    Richard, Seems you've done some fantastic work on using TFT's with PBP.

    I have a 2.8" display of the same resolution, but I'm running PBP 2.60c which lacks the usercommand function. Is there any chance you could advise / produce a library that works with version 2.60 ?

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


    Did you find this post helpful? Yes | No

    Default Re: A tft addin for pbp3

    I won't speak for Richard but I'd take this as the opportunity you've been looking for to finally justify the upgrade PBP3 - you've now found a feature it has that you want/need ;-)

    /Henrik.

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


    Did you find this post helpful? Yes | No

    Default Re: A tft addin for pbp3

    I won't say its impossible but


    lets take one simple usercmd

    GLCDSTR 2,2,buff
    macro called is

    GLCDSTR?CCB macro Xin ,Yin ,Bin
    MOVE?CW Xin , _X
    MOVE?CW Yin ,_Y
    MOVE?CB high Bin, FSR1H ;load highbyte
    MOVE?CB low Bin, FSR1L ;load low byte
    L?CALL tft_str_out
    endm

    translation to pbp2.6


    X=2
    Y=2
    @ MOVE?CB high _buff, FSR1H ;load highbyte
    @ MOVE?CB low _buff, FSR1L ;load low byte
    call tft_str_out
    not too difficult but its messy and could get very ugly very quickly , as henrik says an upgrade looks good

  13. #13
    Join Date
    Oct 2009
    Posts
    583


    Did you find this post helpful? Yes | No

    Default Re: A tft addin for pbp3

    Would love to upgrade, but being a casual user, and between jobs, upgrading is simply not an option for me at the monemt

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