Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-alun-moon committed Nov 20, 2017
1 parent 6379dd4 commit 833f95a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
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?

0 comments on commit 833f95a

Please sign in to comment.