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 shows how to get the number of points and the coordinates of the first touch points detected by the touch controller using interrupts.
5
-
*
6
-
* The setup() function initializes the serial communication and the touch controller. Whenever a touch event is detcted, the gigaTouchHandler function is called that prints the number of points and first touch co-ordinates to the Serial Monitor. The loop() function is empty because the touch controller is configured to work with interrupts.
7
-
*
3
+
*
4
+
* This example shows how to get the number of points and the coordinates of the
5
+
* first touch points detected by the touch controller using interrupts.
6
+
*
7
+
* The setup() function initializes the serial communication and the touch
8
+
* controller. Whenever a touch event is detcted, the gigaTouchHandler function
9
+
* is called that prints the number of points and first touch co-ordinates to
10
+
* the Serial Monitor. The loop() function is empty because the touch controller
11
+
* is configured to work with interrupts.
12
+
*
8
13
* For the polling version of this example, see Touch_Polling.ino
9
-
*
14
+
*
10
15
* Instructions:
11
-
* 1. Connect your GIGA Display Shield (ASX00039) to a GIGA R1 WiFi (ABX00063) board .
16
+
* 1. Connect your GIGA Display Shield (ASX00039) to a GIGA R1 WiFi (ABX00063)
17
+
* board .
12
18
* 2. Upload this sketch to your board.
13
19
* 3. Open the Serial Monitor.
14
-
* 4. Touch the screen with your finger(s) and view the coordinates printed on the Serial Monitor.
15
-
*
20
+
* 4. Touch the screen with your finger(s) and view the coordinates printed on
Copy file name to clipboardExpand all lines: examples/Touch_Polling/Touch_Polling.ino
+21-13Lines changed: 21 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,24 @@
1
-
/*
1
+
/*
2
2
* Touch_Polling.ino
3
-
*
4
-
* This example shows how to get the number of points and the coordinates of the first touch points detected by the touch controller using polling.
5
-
*
6
-
* The setup() function initializes the serial communication and the touch controller. The loop() function continuously checks to see if a touch event is detected. Whenever a touch event is detcted, that prints the number of points and first touch co-ordinates to the Serial Monitor.
7
-
*
3
+
*
4
+
* This example shows how to get the number of points and the coordinates of the
5
+
* first touch points detected by the touch controller using polling.
6
+
*
7
+
* The setup() function initializes the serial communication and the touch
8
+
* controller. The loop() function continuously checks to see if a touch event
9
+
* is detected. Whenever a touch event is detcted, that prints the number of
10
+
* points and first touch co-ordinates to the Serial Monitor.
11
+
*
8
12
* For the interrupt version of this example, see Touch_IRQ.ino
9
-
*
13
+
*
10
14
* Instructions:
11
-
* 1. Connect your GIGA Display Shield (ASX00039) to a GIGA R1 WiFi (ABX00063) board .
15
+
* 1. Connect your GIGA Display Shield (ASX00039) to a GIGA R1 WiFi (ABX00063)
16
+
* board .
12
17
* 2. Upload this sketch to your board.
13
18
* 3. Open the Serial Monitor.
14
-
* 4. Touch the screen with your finger(s) and view the coordinates printed on the Serial Monitor.
15
-
*
19
+
* 4. Touch the screen with your finger(s) and view the coordinates printed on
0 commit comments