The best way to program this project is in three pieces:
Project8624-4x4-Matrix-Keypad-Test.svg [2]
Next, test the seven-segment display by loading the Blockly code for the Seven-Segment Display Test:
Project8621-Seven-Segment-Test.svg [3]
This will cycle through numbers 0-9 in an endless loop.
If the 4x4 matrix keypad and seven-segment display codes worked successfully, then you’re ready to run the Blockly code for the 4x4 Matrix Keypad with Seven-Segment Display (shown in full below):
Links
[1] https://solo.parallax.com/
[2] https://learn.parallax.com/sites/default/files/content/AB-Blockly/Keypad-7Seg/Project8624-4x4-Matrix-Keypad-Test.svg
[3] https://learn.parallax.com/sites/default/files/content/AB-Blockly/Keypad-7Seg/Project8621-Seven-Segment-Test.svg
[4] https://learn.parallax.com/sites/default/files/content/AB-Blockly/Keypad-7Seg/Project8331-4x4-Keypad-7-Seg-Display.svg