![ICP DAS USA TouchPAD TPD Series Скачать руководство пользователя страница 33](http://html1.mh-extra.com/html/icp-das-usa/touchpad-tpd-series/touchpad-tpd-series_programming-manual_3682250033.webp)
TPD/VPD Series - Getting Started v.1.0.5
Page 29
Copyright@ 2012 ICP DAS CO., LTD. All Rights Reserved. E-mail: [email protected]
Step 5: Configure the properties for the “BitButton” component.
a.
Select the “BitButton” component in the design area.
b.
Click the “Text” field in the Properties Inspector panel and enter the string “Click Me”.
c.
Click the “Font” field to change the font to a suitable style, size and color.
Step 6: Edit the control codes for the “BitButton” component.
a.
Double click the “BitButton” component in the design area to open the programming
window.
b.
Edit the code in the programming window using the C language. (Users can copy the
code from the picture below.) In this demo, each click of the button will add 1 to the
counter and beep once until it reaches 100, and will then reset to 0 before beginning
to accumulate again.
a.
b.
c.