
The following program shows how all of the previously mentioned features can be utilized to easily
create an intuitive and responsive user interface. When a button is pressed, its colors will be reversed
for visual feedback, and a "beep" sound will be generated for audio feedback.
'
' Demo for Cutouch
'
#include "CT18XX"
Dim TX1 As Integer, TY1 As Integer
Dim k As Long
CT18contrast 150
' Adjust this value to change the screen contrast
On Pad Gosub TouchInput
Menuset 0,2,8,16,87,63
Menutitle 0,13,13,"Start"
Menuset 1,2,96,16,176,63
Menutitle 1,13,13,"End"
Menuset 2,2,184,16,264,63
Menutitle 2,13,13,"Restart"
Low 18
Do
Loop
TouhcInput:
TX1 = Sys(10)
TY1 = Sys(11)
Circlefill TX1,TY1,10
If Menucheck(0,TX1,TY1) = 1 Then
Menureverse 0
CT18beep 20
' Audio feedback
End If
If Menucheck(1,TX1,TY1) = 1 Then
Menureverse 1
CT18beep 20
' Audio feedback
End If
If Menucheck(2,TX1,TY1) = 1 Then
Menureverse 2
CT18beep 20
' Audio feedback
End If
Return
Comfile Technology, Inc
CT1820 User's Manual
48 Of 93
Summary of Contents for CUTOUCH CT1820
Page 4: ...Chapter 1 Overview Comfile Technology Inc CT1820 User s Manual 4 Of 93 ...
Page 7: ...The CT1820 s Appearance Comfile Technology Inc CT1820 User s Manual 7 Of 93 ...
Page 8: ...Comfile Technology Inc CT1820 User s Manual 8 Of 93 ...
Page 9: ...Comfile Technology Inc CT1820 User s Manual 9 Of 93 ...
Page 12: ...Comfile Technology Inc CT1820 User s Manual 12 Of 93 ...
Page 17: ...Comfile Technology Inc CT1820 User s Manual 17 Of 93 ...
Page 19: ...Chapter 2 I O Comfile Technology Inc CT1820 User s Manual 19 Of 93 ...
Page 29: ...Comfile Technology Inc CT1820 User s Manual 29 Of 93 ...
Page 32: ...Chapter 3 Command Reference Comfile Technology Inc CT1820 User s Manual 32 Of 93 ...
Page 41: ...Chapter 4 Touch Input Comfile Technology Inc CT1820 User s Manual 41 Of 93 ...
Page 52: ...Chapter 5 ModPort I O Expansion Comfile Technology Inc CT1820 User s Manual 52 Of 93 ...
Page 61: ...Chapter 6 Sample Programs Comfile Technology Inc CT1820 User s Manual 61 Of 93 ...
Page 87: ...Chapter 7 Panel Mounting Comfile Technology Inc CT1820 User s Manual 87 Of 93 ...
Page 88: ...Dimensions Comfile Technology Inc CT1820 User s Manual 88 Of 93 ...
Page 89: ...Comfile Technology Inc CT1820 User s Manual 89 Of 93 ...
Page 90: ...Panel Cutout Comfile Technology Inc CT1820 User s Manual 90 Of 93 ...