Skip to content

Commit

Permalink
docs: add header comment to examples
Browse files Browse the repository at this point in the history
  • Loading branch information
aliphys committed Jun 10, 2024
1 parent b95fb0d commit ae078b8
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 12 deletions.
24 changes: 18 additions & 6 deletions examples/Touch_IRQ/Touch_IRQ.ino
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
/*
Touch_IRQ
created 03 May 2023
by Leonardo Cavagnis
*/
/*
* Touch_IRQ.ino
*
* 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.
*
* 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.
*
* For the polling version of this example, see Touch_Polling.ino
*
* Instructions:
* 1. Connect your GIGA Display Shield (ASX00039) to a GIGA R1 WiFi (ABX00063) board .
* 2. Upload this sketch to your board.
* 3. Open the Serial Monitor.
* 4. Touch the screen with your finger(s) and view the coordinates printed on the Serial Monitor.
*
* Initial author: Leonardo Cavagnis @leonardocavagnis
* Created: 03 May 2023
*/

#include "Arduino_GigaDisplayTouch.h"

Expand Down
24 changes: 18 additions & 6 deletions examples/Touch_Polling/Touch_Polling.ino
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
/*
Touch_Polling
created 03 May 2023
by Leonardo Cavagnis
*/
/*
* Touch_Polling.ino
*
* 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.
*
* 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.
*
* For the interrupt version of this example, see Touch_IRQ.ino
*
* Instructions:
* 1. Connect your GIGA Display Shield (ASX00039) to a GIGA R1 WiFi (ABX00063) board .
* 2. Upload this sketch to your board.
* 3. Open the Serial Monitor.
* 4. Touch the screen with your finger(s) and view the coordinates printed on the Serial Monitor.
*
* Initial author: Leonardo Cavagnis @leonardocavagnis
* Created: 03 May 2023
*/

#include "Arduino_GigaDisplayTouch.h"

Expand Down

0 comments on commit ae078b8

Please sign in to comment.