Quantcast
Channel: MSP430 Technical Forums
Viewing all articles
Browse latest Browse all 2077

keypad interfacing

$
0
0

I have recently bought a LaunchPad 2553. I am a comparitive novice.

 

I am trying to add a  4 X 4 matrix keypad.  I copied some code from an Arduino source and changed #Arduino references to #Energia. I commented out a  #WProgram statement - what is this ?

 

The code compiled and verified OK .  I connected the 8 wires from keypad  to p1.0 -p1.7 [ and tried other ports as well ].

 

The output was sent to the Serial monitor via Serial.println( key ).  I could only get any output by pressing many keys at the same time.

 

I looked at the keyboard.h  file but it went nothing to me.  How do the DigitalReads get initiated ?

 

 [ Serial.println ("hello world " ) worked so the program does get to the right place  ]

 

Any suggestions please  - pointers to existing code snippets - I can't fine any . Thanks


Viewing all articles
Browse latest Browse all 2077

Trending Articles