Jump to content
Sign in to follow this  

[Help] 4x4 Matrix Keypad

Recommended Posts

Take a look at this thread.

Thanks you so much !!

Please tell me your idea about "Simple Digital clock"???

I want to design a simple digital clock using msp430. Hope all help me design it ??

Thanks all !

PS: So sorry, my english so bad !!

Share this post

Link to post
Share on other sites

#include <Keypad.h>

const byte ROWS = 4; //four rows
const byte COLS = 3; //three columns
char keys[ROWS][COLS] = {
byte rowPins[ROWS] = {P1_6,P1_7,P2_2,P1_0}; //connect to the row pinouts of the keypad
byte colPins[COLS] = {P1_5,P1_4,P1_3}; //connect to the column pinouts of the keypad

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

void setup(){
void loop(){
  char key = keypad.getKey();
  if (key){

can you help me modify this code for msp430???

I'm really need the code like this for my application.

Please help me !!

Thanks all! !

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...