In this project we will turn on LEDs by clicking on the right digit on the keypad. The buttons 1 to 4 then operate LEDs 1-4. The instruction myKeypad.getKey(); will be changed to myKeypad.getKey(Sim_Key); to work together with the KeypadSim.h library.
Drag the 4 LEDs and the keypad in the work space. Select the digital pins 10, 11, 12 and 13 for the LEDs. The keypad is connected with digital pins 2 – 9. Connect the Arduino to the simulator.