-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6379dd4
commit 833f95a
Showing
1 changed file
with
9 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
# s2.1 | ||
First interrupt example | ||
### Button edge Events | ||
The repository [s2.1]{https://github.com/kf5011/s2.1} uses a falling and rising edge interrupt on each of the two buttons on the base board. | ||
|
||
1. Run the program and examine it's behaviour. (You'll need the serial-monitor to see the output from the print statements) | ||
2. Pay close attention to when the actions occur, when the button is pressed or released. | ||
|
||
1. Identify the input pins related to the buttons and the 5-way joystick on the shield. | ||
2. Each pin can have an interrupt for the rising-edge and falling-edge signal, a total of 14 possible interrupts. | ||
3. Investigate the actions of the interrupts for the base-board switches and the 5-way switch. What differences can you see? |