Traditional Graphical LCD Vs DWIN LCdBy 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:
- The text in the top “Horizon Medical System”
- The picture on the side.
- The buttons in the middle (three buttons);
- 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.
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:
- Change the color of specific area.
- Hide specific area by a new image.
- Change the background color of an image.
- 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.
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.