Chapter 11
Chapter 11
Question 3:
Describe the operation of the setDebounceTime library function and discuss why it required is?
Answer
Sets the amount of milliseconds to wait before accepting a new key press or key event.
If the setDebounceTime () function is not called, the default time is set to 10 ms.
Question 9:
Design an Arduino C program without comments that serially transmits at 9600 baud rate, the state of
the key when pressed The Arduino row pins A5, A4, 3 and 2 along with column pins 12, 11 and 10 are
connected to a standard 3 x 4 numeric matrix keypad Additionally, set the debounce time to 10 ms and
the key press hold time to 250 ms The following serially transmitted strings:: “PRESSED”, “HOLD”,
REASED” and “IDLE“must appear on separate lines as the different states occur?
Answer
#include <Keypad.h>