123456789101112131415161718192021222324252627282930313233343536373839 |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- import time
- import pyupm_ttp223 as ttp223
-
-
- touch = ttp223.TTP223(0)
-
-
-
- while 1:
- if touch.isPressed():
- print touch.name(), 'is pressed'
- else:
- print touch.name(), 'is not pressed'
- time.sleep(1)
-
-
- del touch
|