Application Example : Using TOPWAY Smart LCD (HMT050CC-C) to display bit variable icons
The first step is to create a project
The second step is to create a page and import the background image
Step 3: Associate the page with the background image
①Click the work area , and the page properties will be displayed on the right.
② Select the background image of the page in Background Image in the properties
Step 4: Import 2 bit variable icons
① In the Resource window, right-click Icons and select Import Icon
②Select the icon you want to import
③Click the "Open" button to complete
Step 5: Establish N16 VP address
① In the Resource window, right-click 16bit Number Variables and select New VP to create address 0x080000
Step 6: Create a bitmap element and associate it with VP
①Click the variable element icon in the menu toolbar
②Create a bit variable icon element in the page workspace
③ In the properties, select Transparent : True
④ Select Transparent Color in the properties : 0xFFFFFF
⑤In the properties, select Icon (Bit=1) and Icon (Bit=0) respectively: DI0000 and DI0001
⑥ In the properties, select VP Address : 0x080000
⑦Bit Position setting in properties : 1 ( Use D1 as the control bit )
Step 7: Create two touch key elements and set key properties
①Click the touch key element icon on the menu toolbar
② Create 2 touch key elements in the page workspace
③In the properties , select Call Operation : bit1(VP):=LSB(Value)
④ In the properties, select VP Address : 0x080000
⑤In the properties, set Title/Value to: 0 and 1 respectively
Step 8: Compile and download
①Connect the module to the PC with a USB cable
②Click the " Download To Module " icon on the menu bar .
③Click " Start Download "
Step 9 Power-on display
①Disconnect the USB connection from the module
② Provide 5V power to the module
③Power -on display
|
④Click the touch key at ON , the icon changes
|
⑤ Click the touch key at OFF , the icon changes
|
This content is originally created by EEWORLD forum user Cijian Dare Not Be the First . If you want to reprint or use it for commercial purposes, you must obtain the author's consent and indicate the source
Finish.