keypad — Arduino Uno simulation

An interactive Arduino Uno circuit simulation you can run free in your browser on Velxio, by ishaksefta55.

Components

Sketch code

// Blink LED Example
// Toggles the built-in LED on pin 13
#include <Keypad.h>

const byte ROWS = 4;
const byte COLS = 3;

char keys[ROWS][COLS] = {
  {'1','2','3'},
  {'4','5','6'},
  {'7','8','9'},
  {'*','0','#'}
};



byte rowPins[ROWS] = {9, 7, 6, 5}; 
byte colPins[COLS] = {4, 3, 2}; 

Keypad key = Keypad(makeKeymap(keys), rowPins, colPins, ROWS, COLS);


void setup() {
Serial.begin(115200);

}

void loop() {
  char userkey=key.getKey();
 if (userkey) {
  Serial.println(userkey);
 }
}

More projects by ishaksefta55