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


    Did you find this post helpful? Yes | No

    Default Re: A tft addin for pbp3

    Why you have selected BS250
    because it comes in a t092 package I can use in a breadboard for testing , yes a IRLML9301TRPbF would probably be better but they only come in a sot23 package.

    visnja30 repetitively button, it works but not as expected
    I would need to see your code to be sure ,button auto repeat works for me just fine . auto repeat won't begin until long_press_threshold has been reached and will repeat @ repeat_press_rate

    these constants in the TOUCH_TFT.PBPMOD file control button timing . they may need adjusting depending on OSC and "gosub CK_BUTTON " loop rate

    repeat_press_rate con 100 ;button auto repeat rate (must be less than long_press_threshold)
    long_press_threshold con 300 ; min time for a BUTTON long press result
    short_press_threshold con 20 ; min time for a BUTTON pressed result

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


    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

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


    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

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


    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

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


    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

  6. #6
    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?

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


    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:

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