Skip to content

Commit 49ff264

Browse files
add descriptions of examples
1 parent 9f63e90 commit 49ff264

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

examples/qwiic_keypad_ex1.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# qwiic_env_keypad_ex1.py
44
#
55
# Simple Example for the Qwiic Keypad Device
6+
# This example prints which button was pressed. Press * for space and # for new line.
67
#------------------------------------------------------------------------
78
#
89
# Written by SparkFun Electronics, May 2019

examples/qwiic_keypad_ex2.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# qwiic_env_keypad_ex2.py
44
#
55
# Simple Example for the Qwiic Keypad Device including Time
6+
# This example prints which button was pressed and when it was presed.
67
#------------------------------------------------------------------------
78
#
89
# Written by SparkFun Electronics, May 2019

examples/qwiic_keypad_ex3.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# qwiic_env_keypad_ex3.py
44
#
55
# Simple Example for the Qwiic Keypad Device
6+
# This example waits for the user to input the correct 4 digit keycode,
7+
# and then responds with a nice message on serial if they get it right.
68
#------------------------------------------------------------------------
79
#
810
# Written by SparkFun Electronics, May 2019
@@ -152,7 +154,7 @@ def printEntry(userEntry):
152154
try:
153155
runExample()
154156
except (KeyboardInterrupt, SystemExit) as exErr:
155-
print("\nEnding Example 1")
157+
print("\nEnding Example 3")
156158
sys.exit(0)
157159

158160

0 commit comments

Comments
 (0)