A tft addin for pbp3


Closed Thread
Results 1 to 40 of 142

Hybrid View

  1. #1
    Join Date
    Oct 2013
    Posts
    41


    Did you find this post helpful? Yes | No

    Default Re: A tft addin for pbp3

    Yes,wrong include I use,now it is work.

    I create a counter,and when I touch the button counter increase e his value for 1.Each press increase counter for 1.

    COUNTER=COUNTER+1
    Is it possible to make that when i press a button and hold pressed the counter increase his value throughout the whole period when it pressed

  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

    Is it possible to make that when i press a button and hold pressed the counter increase his value throughout the whole period when it pressed
    yes good idea , I have added an auto repeat property to buttons

    Code:
      button_rpt.0[3]=1             ;button3 auto rpt
    Attached Files Attached Files

  3. #3
    Join Date
    Jan 2011
    Location
    Sydney, Australia
    Posts
    172


    Did you find this post helpful? Yes | No

    Default Re: A tft addin for pbp3

    Hi Richard,

    I am having some issues compiling your TFT_Demo program and hope you can steer me in the right direction.
    I am using Microcode Studio 5.0.0 5 and PBPX 3.0.7.4

    When I first compile I get a "Syntax Error (195)". The line of code is "fillcircle 60 , 60 , 20"
    I have looked through the include files and cannot find a USERCOMMAND for "fillcircle". What am I missing?

    Attempting to move on, I commented out the offending fillcircle line of code and tried to compile again.
    Now I get four ASM ERROR message "Address label duplication or different in second pass".
    (Z001D9) (Z001DA) (Z001DB) (Z001DC)

    I am very keen to get my new TFT Touchscreen operational so any advice on how to correct the above issues would be greatly appreciated.

    I have attached all relevant files (main program, includes etc.) for your reference.

    Cheers
    Barry
    VK2XBP
    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

    hi barry


    the address dup messages come from having coff file generation turned on when using dt_ints , don't know why ,wish it wouldn't
    see the attached screen shot to remedy that

    the syntax error i think comes from not using the latest tft-spi.pbpmod file

    I have uploaded the latest just incase I stuffed up
    Attached Images Attached Images  
    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

    I did stuff up , seems I forgot to upload the latest version with fillcircle command in it .
    apologies to all,

  6. #6
    Join Date
    Jan 2011
    Location
    Sydney, Australia
    Posts
    172


    Did you find this post helpful? Yes | No

    Default Re: A tft addin for pbp3

    Thanks Richard - that did the trick!
    Everything compiles and programs.
    Now to breadboard it and make it work

    Cheers
    Barry
    VK2XBP

  7. #7
    Join Date
    Jan 2011
    Location
    Sydney, Australia
    Posts
    172


    Did you find this post helpful? Yes | No

    Default Re: A tft addin for pbp3

    Hi Richard,

    I have had a small amount of success getting this thing going but still having a few problems.
    Firstly, your .pdf circuit diagram appears to have another mistake (apart from the MCLR issue)
    You show the LED connection on J2 as being Pin 9 however I believe it should be Pin 8 - or at least that's what is printed on the PCB silkscreen.
    I made the necessary adjustments but still nothing. I am getting a nice 50% duty cycle PWM signal (~7.8kHz) on CCP1.
    In frustration I connected the LED connection (J2 Pin 8) to the wiper of a 10k pot and adjusted it between 0V and 3.3V.
    Once I got to around 3V the screen came to life - or at least half of it did
    I think I might have a dodgy TFT screen.
    I can see the elapsed timer counting and some of the reset button but most of the right side of the screen is scrambled with a big black ovoid shape in the middle.

    Looks like I need to do another eBay purchase but don't really want to have to wait 3-4 weeks for it to arrive!

    Thanks for all your help thus far. I will be in touch again once I have a new screen to play with.

    Cheers
    Barry
    VK2XBP

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