Traditional Graphical LCD Vs DWIN LCd

By Youssef Edward
April 25, 2019


Traditional LCD requires doing some complicated routines in order to render the required parts. For instance, a draw line command to draw a single line, draw circle in order to draw a single circle. Those commands are sent to the controller inside the LCD to transform the commands to pixels on the screen. On the contrary, new generation of UART LCDs require only to set those elements in design time. At run time, the microcontroller need not build those huge steps to generate the graphics.

To be clearer, imagine you need to draw a page like the following one.

This picture has many elements. Those are as follow:

  1. The text in the top “Horizon Medical System”
  2. The picture on the side.
  3. The buttons in the middle (three buttons);
  4. The button on the bottom.

All of those
elements need to be established at run time for traditional graphical LCD. The microcontroller needs to send write text command in order to write the top text. Also must send pixels to the controller to draw the picture,…and so on.

For new
generation DWIN LCD, the entire picture is built on standard PC by graphic
programs like Photoshop, and CorelDraw. Those programs are quite rich in tool and enable to build complicated images.  The most common tasks you may use for DWIN screen graphic building are:

  1. Change the color of specific area.
  2. Hide specific area by a new image.
  3. Change the background color of an image.
  4. Crop a region in image and place it on another image.

Once you are familiar with those tasks in CorelDraw, it will be easier to design DWIN based applications at more less time than traditional graphical LCD.

Once the pictures are set for the applications, it is time to embed them in the DWIN toolbox to generate the folder that will be downloaded on the LCD via SD card.

The next
step is to define each area as a specific touch control. Each area is defined
by rectangular region set by pixel number as X, Y coordinates.  Each time the user press specific area defined by the touch control, a defined action will happen.

For instance, the programmer may define the action of press to write to a specific address in RAM. The microcontroller could then poll for this address and make another action if the address value is within certain range.

Leave a Reply

Your email address will not be published. Required fields are marked *