1
Page 1 / 1 Application Note File: AN170048(PIP_RTC_Keyboard_application_note)(en).doc By: K.C. 20170502 Using PIP RTC Keyboard to set the RTC Application Example (This example is using TOPWAY Smart LCD (HMT043FC-2C) and Editor 2017) Step1 Start a New Project (please refer to the previous examples) Step2 Built two pages, import three pictures (please refer to the previous examples) Step3 Link the page with the IMG_BKG select DP0000 as PG0000 background for main page select DP0001 as PG0001 background for PIP RTC keyboard page DP0000, Main DP0001, kb_up DP0002, kb_dn Step4 Build Font Tools Options Font Setting Font Config <2> right click on 160, and select "built" set Font Size = 16 x 32 select ASCII set Font Name = FuturaBlack BT set Font Size = 32 select "X Shift" as centered click "Generate" Step5 Built a PIP RTC Keyboard select Touch Key in tools bar create 12 rectangle touch key area on PG0001 set all 12 TPKs' "On Press Down" as "Show Cropped BgImg" & BgImg=DP0002 ,in Touch Key properties set the 10 numeric TPKs' "Call as "VP:=Concatenate(VP,Value)" set "Title/Value" as its own value set the “X” TPK's "Call" as "Call=Esc" set the “OK” TPK's "Call" as "Call=Enter" Step6 Built a Real Time Clock on screen select Real Time Clock, in tools bar, in tool bar create a rectangle for the clock on PG0000 set Font = 16x32_FuturaBlackBT_160 in Real Time Clock properties right click on the Real Time Clock and select Add Touch Key set Call = PIP RTC, in Touch Key properties; Step7 Config the PIP RTC keyboard select PIP Window set "Pop Area of Page" as "PG0001" (keyboard page) in properties use mouse to adjust its size (hold the Ctrl + mouse to shift its content area) select PIP Title, keep all the properties as default use mouse to adjust its size Step8 Compile and download (please refer to the previous examples) Step9 Power on and Display Touch the RTC area on the main page and pop up the PIP (RTC) key board Key-in the date and time and then touch "enter" The RTC show the updated time ‐‐ done ‐‐

Application Note File:AN - Topway Display

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Application Note File:AN - Topway Display

 

Page 1 / 1  

  Application Note File: AN‐17‐0048(PIP_RTC_Keyboard_application_note)(en).docBy: K.C. 2017‐05‐02 

Using PIP RTC Keyboard to set the RTC Application Example (This example is using TOPWAY Smart LCD (HMT043FC-2C) and Editor 2017)

Step1 Start a New Project (please refer to the previous examples)

Step2 Built two pages, import three pictures (please refer to the previous examples)

Step3 Link the page with the IMG_BKG ① select DP0000 as PG0000 background for main page ② select DP0001 as PG0001 background

for PIP RTC keyboard page DP0000, Main

DP0001, kb_up DP0002, kb_dn

Step4 Build Font ① Tools Options Font Setting Font Config <2> ② right click on 160, and select "built" ③ set Font Size = 16 x 32 ④ select ASCII ⑤ set Font Name = FuturaBlack BT ⑥ set Font Size = 32 ⑦ select "X Shift" as centered ⑧ click "Generate"

Step5 Built a PIP RTC Keyboard ① select Touch Key in tools bar ② create 12 rectangle touch key area on PG0001 ③ set all 12 TPKs' "On Press Down" as "Show Cropped BgImg" &

BgImg=DP0002 ,in Touch Key properties ④ set the 10 numeric TPKs' "Call as "VP:=Concatenate(VP,Value)"

set "Title/Value" as its own value ⑤ set the “X” TPK's "Call" as "Call=Esc" ⑥ set the “OK” TPK's "Call" as "Call=Enter"

Step6 Built a Real Time Clock on screen ① select Real Time Clock, in tools bar, in tool bar ② create a rectangle for the clock on PG0000 ③ set Font = 16x32_FuturaBlackBT_160 in Real Time Clock properties

④ right click on the Real Time Clock and select Add Touch Key ⑤ set Call = PIP RTC, in Touch Key properties;

Step7 Config the PIP RTC keyboard ① select PIP Window ② set "Pop Area of Page" as "PG0001" (keyboard page) in properties③ use mouse to adjust its size

(hold the Ctrl + mouse to shift its content area)

④ select PIP Title, keep all the properties as default ⑤ use mouse to adjust its size

Step8 Compile and download (please refer to the previous examples) Step9 Power on and Display

Touch the RTC area on the main page and pop up the PIP (RTC) key board

Key-in the date and time and then touch "enter"

The RTC show the updated time

‐‐ done ‐‐