Need help in matrix keypad coding


Closed Thread
Results 1 to 16 of 16

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by rano_zen06 View Post
    D. What i want to do is:-
    when I pressed switch '1' at keypad the character display on lcd is BUS01,
    when I pressed switch '2' at keypad the character display on lcd is BUS02;
    when I pressed switch '3' at keypad the character display on lcd is BUS03
    ...........................................
    The problem now, I don't know how to contunie this coding to get what i really want because..................
    So what is it that you really want?
    Is it what's at the beginning of your post?
    What have you tried so far?
    What works?
    What doesn't work?

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    try to change the following section
    Code:
    loop: 
            Gosub getkey ' Get a key from the keypad
            Lcdout $FE, $C0, "BUS",DEC2 key ' Display ASCII key number on 2nd line
            PAUSE 200
            Goto loop ' Do it forever
    Last edited by mister_e; - 28th March 2008 at 13:59. Reason: silly mistake
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Mar 2008
    Posts
    19


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e View Post
    try to change the following section
    Code:
    loop: 
            Gosub getkey ' Get a key from the keypad
            Lcdout $FE, $C0, "BUS",DEC2 key ' Display ASCII key number on 2nd line
            PAUSE 200
            Goto loop ' Do it forever
    THis code works.Thank you for Helping me.

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by rano_zen06 View Post
    THis code works.Thank you for Helping me.
    That codes works, yes.
    But! Did you learn anything from it?

  5. #5
    Join Date
    Mar 2008
    Posts
    19


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    That codes works, yes.
    But! Did you learn anything from it?
    of course, I will learn something from it.Although I'm new with PIC and the coding but I will give a try.

  6. #6
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Rano, don't worry about Skimask. This is his own way to tell you...
    Code:
    Hi : and: welcome : on : this : forum : . : We : are : glad : to : see : you : here : and : help : you : when : you : need : us : . : This : said : never : hesitate : to : ask : questions : . : Good : luck : !
    Last edited by mister_e; - 28th March 2008 at 19:48.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  7. #7
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e View Post
    Rano, don't worry about Skimask. This is his own way to tell you...
    Good one...
    What I was getting at was the fact that the O/P said he 'found the code on the internet' and didn't know how to make it do what he needed it to do...suggesting that maybe the O/P dove in head first, maybe without so much as first creating a 'blinky' and working up from there. 'cause quite frankly, that fix up there a couple of posts back is a very basic fix (change should be the operative word here).
    In other words, I think a fish has been given...and more fish might soon be handed out...
    Last edited by skimask; - 29th March 2008 at 07:30.

Similar Threads

  1. Matrix Keypad routine
    By mister_e in forum Code Examples
    Replies: 134
    Last Post: - 18th September 2022, 20:30
  2. calculator-like code entry with matrix keypad and display
    By Dennis in forum mel PIC BASIC Pro
    Replies: 35
    Last Post: - 16th December 2009, 22:58
  3. 3x4 matrix keypad
    By tazntex in forum Serial
    Replies: 3
    Last Post: - 14th October 2008, 20:13
  4. Inconsistent output on a 4x4 matrix keypad
    By markcadcam in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 24th November 2006, 03:54
  5. very basic matrix keypad question
    By kitcat in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 8th July 2006, 21:33

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts