We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcf231f commit f1758dcCopy full SHA for f1758dc
Feedback_Servo_Record_and_Play/feedback_record_play/code.py
@@ -29,15 +29,7 @@
29
SAMPLE_COUNT = 512
30
SAMPLE_DELAY = 0.025
31
32
-# # Setup record button
33
-# record_button = DigitalInOut(RECORD_PIN)
34
-# record_button.direction = Direction.INPUT
35
-# record_button.pull = Pull.UP
36
-
37
-# # Setup play button
38
-# play_button = DigitalInOut(PLAY_PIN)
39
-# play_button.direction = Direction.INPUT
40
-# play_button.pull = Pull.UP
+# Setup buttons
41
buttons = keypad.Keys((RECORD_PIN, PLAY_PIN), value_when_pressed=False, pull=True)
42
43
# Setup LED
0 commit comments