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,714


    Did you find this post helpful? Yes | No

    Default Re: A tft addin for pbp3

    I put a bug in the CK_BUTTON: subroutine in the TOUCH_TFT.PBPMOD file , it stops a long_press being detected


    should be this
    IF button_count[the_button] >= long_press_threshold THEN
    instead of
    IF button_count[the_button] > long_press_threshold THEN
    I will post a amended version when I finish getting the >64k code location problem solved for strings

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


    Did you find this post helpful? Yes | No

    Default Re: A tft addin for pbp3

    some updates

    CK_BUTTON: subroutine in the TOUCH_TFT.PBPMOD file fixed
    const txt strings can now be anywhere in addressable pgm memory
    button txt strings can now be anywhere in addressable pgm memory


    pin definitions for tft dc/cs/rst have been simplified
    eg. for tft cs on bit 5 instead of tft_cs_bit con 32 is now

    Code:
    tft_cs_bit  con 5
    Attached Files Attached Files

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


    Did you find this post helpful? Yes | No

    Default Re: A tft addin for pbp3

    some changes to the touch add in
    now ready for 16 buttons ,makebutton is optimised a bit better, bank 0 dependency relaxed
    Attached Files Attached Files

  4. #4
    Join Date
    May 2013
    Location
    australia
    Posts
    2,714


    Did you find this post helpful? Yes | No

    Default Re: A tft addin for pbp3

    finally worked out why fillcircle was so slooooow
    a much faster solution
    Attached Files Attached Files

  5. #5
    Join Date
    Oct 2013
    Posts
    41


    Did you find this post helpful? Yes | No

    Default Re: A tft addin for pbp3

    I include file flash_spi.pbpmod there is two labels with the same name FL_IMG: is it OK or one labels is too much?

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


    Did you find this post helpful? Yes | No

    Default Re: A tft addin for pbp3

    its ok the same label is use twice but it is conditional,only one is selected depending on the display type when the code is compiled
    #ifdef st7735
    FL_IMG:

    or
    #ifdef ILI9431
    FL_IMG:

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


    Did you find this post helpful? Yes | No

    Default Re: A tft addin for pbp3

    some further refinements , drawarc (45deg arc ) fillarc (45 deg pie slice ) and a proper fillrrect (fill round cornered rectangle) and drarrrect , also fixed errors for button macros that had no text option selected
    Attached Files Attached Files

Similar Threads

  1. Replies: 0
    Last Post: - 25th September 2013, 19: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, 09:50
  3. I really need some help with PBP3
    By Ramius in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 26th February 2012, 17:05
  4. What's with PBP3?
    By BrianT in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 10th August 2011, 18:09
  5. Experience of driving TFT screens?
    By isaac in forum General
    Replies: 1
    Last Post: - 26th September 2008, 01:15

Members who have read this thread : 1

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