3.5" Color LCD code example


Closed Thread
Results 1 to 40 of 45

Hybrid View

  1. #1
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default Re: 3.5" Color LCD code example

    I left all 3 in the nice bubble wrap so the dust is staying off. Actually I would love to just get 1 wired up to even start playing. But so far that has not happened. Maybe we need a workshop thread for this thing. Maybe something like an agreed upon uP and bunches of shared knowledge?

    Not gonna lie here, really just am not sure where to start with the beast. I guess uP would be a pretty good place to start.
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    Did you find this post helpful? Yes | No

    Default Re: 3.5" Color LCD code example

    I feel the same for the LCD. Big with many connections, don't know where to start either.

    Also the 3.3 is also setting me back. Would be my first on 3,3 Volts.

    Ioannis

  3. #3
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,159


    Did you find this post helpful? Yes | No

    Thumbs up Re: 3.5" Color LCD code example

    Wow, very interesting.

    I'm a flight sim enthusiast and plan on building a panel, soon. I'm still debating between using a full size LCD monitor with an overlay panel, or going with multiple small LCDs.

    The nice thing with the monitor is that you can get a 19" for under $100 and can have several instrument displays on it; more economical than small LCDs at current prices. And the monitor can be driven directly from the PC at HD quality graphics.

    Example panel; a 19" monitor on the left could extend under the 3 smaller dials and a 15" monitor would be sufficient on the right:



    As much as I'd love to PIC-my-ride, it's still not cost-efficient yet.
    Last edited by Demon; - 11th May 2011 at 15:01.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  4. #4
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: 3.5" Color LCD code example

    Hi, Thanks heaps
    If I do look into a gfx LCD I'll probably begin with this one.

    The circle drawing routine needs to check if the value for radius is less than 3.
    If it is allowed to draw the circle too small it messes up the display,
    and also addresses the screen buffer out of bounds, potentially crashing
    if either you or the display software isn't checking bounds.

  5. #5
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: 3.5" Color LCD code example

    Wow! This thing is HUGE!

    Is anyone here that can compile and run this demo currently?
    Since I stole the circles, it's only fair that I put back diagonal lines
    I think it's a very simple mod on what's in my small LCD code.
    The screen coords need to be words instead of bytes,
    and the midpoint adjusted for words, but it is already unsigned integer math.

  6. #6
    Join Date
    Mar 2008
    Location
    Gerogetown, Texas
    Posts
    94


    Did you find this post helpful? Yes | No

    Default Re: 3.5" Color LCD code example

    Art

    Are you referring to the clock project I posted in 2011. If so, yes it is big, I have not played with it for a while. Most of my project have no long term purpose. I tinker with things just to see if I can do it. It compiled and ran fine on a 18F4550.


    take care

    Dave

  7. #7
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: 3.5" Color LCD code example

    Hi Dave,
    You haven't called it a clock:
    Code:
    @ printstr2 25,20, "SSD2119 Controller"
    @ printstr2 25,28, "Dave Cutliff "
    @ printstr2 25,36, "TFT Color LCD Model Rev 1.0"
    @ printstr2 25,44, "320xRGBx240"
    @ printstr2 25,60, "PicBasic Pro6.0 "
    @ printstr2 25,68, "Sept 8,2010"
    It looks like a general demo how to talk to the LCD,
    and SD Card, etc. (Quite a head start)
    nor do I see any clock code or line draw routines
    but I do see circles and straight lines for rectangles.
    I assumed you ran into the same problem with integer math,
    because normally the diagonal lines come first, then other 2D routines.

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