Menu

7inch GLCD.... new library in production

Anobium
2023-10-20
2023-12-22
  • Anobium

    Anobium - 2023-10-20

    Steve Scott and I are producing a new GLCD library for a 7 inch color LCD with Touch.

    This is an all new approach and should be a great addition to GCBASIC.

    The 7 Inch GLCD Library uses the SSP0700 Series displays. The GLCD supports 7.0 Inch 1024x600 or 800x480 with the LT7686 controller with 3 or 4 Wire Serial SPI interface. The library also supports Capacitive Touch Panel with the GT5426 with an I2C interface.

    The display is a high-performance TFT-LCD graphic accelerated display controller. The LT768x IC supports the control of the contents on the TFT screen. The LT768x also provides graphic acceleration, PIP (picture-in-picture), geometry graphics and other functions. In addition to enhancing the display efficiency, LT768x can also ease the MCU loading on processing graphic data. The LT768x supports 16bit RGB interface.

    LT768x supports a variety of MCU interface, including SPI, I2C serial port, and 8-bit/16-bit parallel interface. The GCBASIC library supports SPI only, this is a constraint of the GLCD implementation. In order to achieve multi-layers high-resolution display effect, it has a built-in 128Mb Display RAM, which can support assorted color depths from 1bit per pixel (2 gray shades) to 24bits per pixel (16M color), and alleviate the processing burden on MCU while displaying animation. With built-in geometric drawing engine, LT768X supports drawing points, lines, curves, ellipse, triangle, rectangle, rounded rectangle, and other functions.

    In addition, LT768x has an embedded hardware graphics acceleration engine (BTE), which provides command-type graphic operations such as screen rotation, flipping, mirroring, PIP and graphics blending, and transparent display. These functions can greatly enhance the display performance, and ease the processing burden on the MCU.

    The powerful display performance of LT768x is ideal for embedded systems with TFT-LCD displays such as home appliances, industrial controls, electronic instruments, medical devices, human-machine interfaces, industrial equipment, inspection equipment, charging stations, multi-function machines, elevator, check-in gate, etc.

    The GLCD has a shape drawing engine to provide smart drawing features: Line, Rectangle, Triangle, Polygon, Poly-Line, Circle, Ellipse, Arc, and Rounded-Rectangle. Characters/text features embedded 8x16, 12x24, 16x32 character sets of iso/iec 8859-1/2/4/5 user-defined characters support half size & full size for 8x16, 12x24 and 16x32

    A great find by Steve.

    See https://github.com/GreatCowBASIC/Help/blob/main/seven_inch_gcld/gcbasic.adoc for progress and lots more information.

    Evan

     
    👍
    1
  • Anobium

    Anobium - 2023-10-23

    A video... introduces the 7 inch displays the GCBASIC dev webpage, unbcxing etc.

     
    👍
    1
  • stan cartwright

    stan cartwright - 2023-10-23

    Nice. Half the price of 7" Nextion. Interesting to see what can be done , like framebuffer.
    What pic to drive it, lgt 328 ?

     
    • Anobium

      Anobium - 2023-10-23

      Yes, much lower cost and no GUI tool to program it.

      I am starting with a 18F but if that works, so, will the LGT... only a lot faster!

       
  • stan cartwright

    stan cartwright - 2023-10-24

    Spi max speed , would lgt be needed or ucontroller with lot of ram to maybe sort a frame buffer?
    Sprites and layers come to mind.
    Lot of work for you and Steve, hope it goes well.
    no gui editor to use it... yes!

     

    Last edit: stan cartwright 2023-10-24
    • Anobium

      Anobium - 2023-10-24

      RAM not really needed as the buffer is in the display. I think you can define an object and move that object from the mcu, I know you can do pictures within the picture with all manner of detection.

      We will start with the GLCD primitives ( pixel, line, box etc etc) then move up to more complex stuff.

      As yet I have found no reference program. So, starting from first principles... the datasheet. Arghhhhh

       
  • Anobium

    Anobium - 2023-10-30

    A video... introduces the other 7 inch displays the GCBASIC dev webpage, unboxing etc.

    Yes, there are two different PCBs for these displays

     
  • Anobium

    Anobium - 2023-12-22

    A lot of progress.

    The display is operational and I will be posting more videos soon, but, it worth sharing the current level of support. It is huge and this is great GLCD.

    It is fast, low memory usage and it really works very well with GCBASIC.

    No. Function Name Function Description
    1 LT7686_Software_Reset () Software Reset
    2 InitGLCD_LT7686() Setup Clock & PLL
    63 LT7686_Display_ColorBar( TRUE ) Color Bar Display Enable
    64 LT7686_Display_ColorBar( FALSE ) Color Bar Display Disable
    65 Line() Drawing a Thin Line
    66 Line() Drawing a Thick Line
    67 Circle() Drawing a Hollow Circle
    68 FilledCircle() Drawing a Solid Circle
    69 FramedFilledCircle() Drawing a Solid Circle with Frame
    70 Ellipse() Drawing a Hollow Ellipse
    71 FilledEllipse() Drawing a Solid Ellipse
    72 FramedFilledEllipse() Drawing a Solid Ellipse with Frame
    73 Square() Drawing a Hollow Rectangle
    74 FilledSquare() Drawing a Solid Rectangle
    75 FramedFilledSquare() Drawing a Solid Rectangle with Frame
    76 CircleSquare() Drawing a Hollow Rounded-Rectangle
    77 FilledCircleSquare() Drawing a Solid Rounded-Rectangle
    78 FramedFilledCircleSquare() Drawing a Rounded-Rectangle with Frame
    79 Triangle() Drawing a Hollow Triangle
    80 FilledTriangle() Drawing a Solid Triangle
    81 FramedFilledTriangle_Frame() Drawing a Solid Rectangle with Frame
    82 LeftUpCurve() Drawing an Upper-Left Curve
    83 LeftDownCurve() Drawing a Lower-Left Curve
    84 RightUpCurve() Drawing an Upper-Right Curve
    85 RightDownCurve() Drawing a Lower-Right Curve
    86 FilledLeftUpCurve() Drawing an Upper-Left 1/4 Ellipse
    87 FilledLeftDownCurve() Drawing an Lower-Left 1/4 Ellipse
    88 FilledRightUpCurve() Drawing an Upper-Right 1/4 Ellipse
    89 FilledRightDownCurve() Drawing an Lower-Right 1/4 Ellipse
    90 Quadrilateral() Drawing a Hollow Quadrilateral
    91 FilledQuadrilateral() Drawing a Solid Quadrilateral
    92 Pentagon() Drawing a Hollow Pentagonal
    93 FilledPentagon() Drawing a Solid Pentagonal
    94 Cylinder() Drawing Cylinder
    95 Quadrangular() Drawing Cube
    96 GCLDMakeTable() Drawing Table
    106 Select_Internal_Font_Init() Internal Font Initialize
    107 Print_Internal_Font_String() Setup Internal Font
    114 Text_cursor_Init() Text Cursor Initialize
    115 Enable_Text_Cursor() Enable Text Cursor
    116 Disable_Text_Cursor()
    117 Graphic_cursor_Init() Graphic Cursor Initialize
    118 Set_Graphic_cursor_Pos() Change Graphic Cursor Position
    119 Enable_Graphic_Cursor() Enable Graphic Cursor
    120 Disable_Graphic_Cursor() Disable Graphic Cursor
    121 PWM0_Init() PWM0 Initialize
    122 PWM1_Init() PWM1 Initialize
    123 PWM0_Duty([Word] Compare_Buffer) Setup PWM0 Duty Rate
    124 PWM1_Duty([Word] Compare_Buffer) Setup PWM1 Duty Rate
    129 Standby() Enter Standby Mode
    130 Suspend() Enter Suspend Mode
    131 SleepMode() Enter Sleep Mode
    132 Wkup_Standby() Wakeup from Standby Mode
    133 Wkup_Suspend() Wakeup from Suspend Mode
    134 Wkup_Sleep() Wakeup from Sleep Mode
     

    Last edit: Anobium 2023-12-22

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.