You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This example will show you how you can use the built-in touchpads (on PCB marked with numbers 1, 2 and 3).
9
+
These are basically touch sensitive switches. You can read state each of these with function touchpad.read( and the argument you need to pass to this function is PAD1 if you want to read the state of touchpad marked
10
+
as "1" on PCB, PAD2 for second touchpad, PAD3 for third. You can also use numbers as arguments.
11
+
For that you need to pass number 0 for touchpad that is marked as 1 on the PCB, 1 for the second touchpad and 2 for the third.
12
+
The function touchpad.read(ill return 1 if selected touchpad is pressed, zero if not.
13
+
14
+
In this example, if you touch the first pad, it will decrese number showed on screen, if you touch the third touch pad,
15
+
it will increase the number, if you touch second touchpad, it will reset the number to zero.
16
+
17
+
NOTE: You can not use touch pads when an enclosure is fitted on the Inkplate - they are not that sensitive!
18
+
19
+
Want to learn more about Inkplate? Visit www.inkplate.io
20
+
Looking to get support? Write on our forums: https://forum.soldered.com/
21
+
11 February 2021 by Soldered
22
+
*/
23
+
24
+
// Next 3 lines are a precaution, you can ignore those, and the example would also work without them
0 commit comments