Page 1 of 1

Week #10: (3/25-29) PING Sensor, 4x4 KeyPad

Posted: Sun Mar 24, 2019 1:45 pm
by rjagodowski
We'll begin with a revisit to Week #9/#13 to complete the discussion of the PING Sensor.

4x4 Keypad

Another required device you'll be using later in the semester is the 4x4 keypad which uses a matrix system to determine which key is pressed. This basic concept is common to most keypad & keyboard components. Here is the pdf for the keypad exercises:
(120.52 KiB) Downloaded 34 times
NOTE: When copying and pasting the sample code for the 4x4 Keypad in the pdf into the BS2 Editor, there might be a problem with the "spacing" of the keyboard grid generated in the subroutine. If this happens, you will notice that the right column or two might not "clear" when releasing the key. To remedy this, insert additional spaces as needed to allow the vertical bars "|" to align with the "+" signs in the row above. Your grid should look like the example code in the keypad pdf.