yes it could work already thanks!
and it is for just row4 (*,0,#,D) on at pin B3-B0 respectively
if i wan it to light up all then have to write the second ReadKeys again?
Sorry Darsin,
When I looked yesterday, it was very quick, and not so helpful...
Pommies function will return a word containing the info on which keys are pressed in your pad. It handles all of the keys. If any keys are pressed the corresponding bits will be set in the word it returns. If no keys are pressed you will get 0x00 back. Use a bit mask to see which keys have been pressed. Do you understand how to do this, or do you need more info?
What I noticed in your last post, is that you turned on the LED for only 200 cycles. If your mcu is running at 4MHz then this isn't long enough to see it on... its only 200 micro seconds... 2 tenths of a thousandth of a second... You have to turn it on longer than this or you won't see it come on.
You should also look up switch debouncing because you will find that the keys are not reliable:
http://www.ganssle.com/debouncing.pdf.
http://www.best-microcontroller-projects.com/switch-debounce.html
I see Mike is still on here and I'm so slow...
Last edited: