EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / How to input array elements using keypad ??

How to input array elements using keypad ??

|

Microcontroller › AVR › How to input array elements using keypad ??

  • This topic has 4 replies, 4 voices, and was last updated 7 years, 10 months ago by meraland.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • May 31, 2018 at 3:06 am #4723
    Bello isihaq
    Participant

    I want to display array elements of LCD by using Keypad. I made a for loop to store every element and display it but ONLY the FIRST element is displayed many times as the size of for loop .. the code is 

    int val[4] ;

    for(i = 0; i<5 ; i++)
                    {
                        val [ i ] = KeyPad_getPressedKey();
                        LCD_intgerToString ( val [ i ] ) ;
                 
                    }

     

    when I simulate it on protues only the FIRST ELEMENTS displayed five times ..
    How can I fix this problem ??

    June 2, 2018 at 1:29 pm #14837
    Ashutosh Bhatt
    Participant

    why are you using for loop?

    you should use while loop

    you pole your keypad in while loop and when button is pressed display it on LCD

    June 15, 2018 at 12:03 pm #14845
    Gand
    Participant

     

     

     

    check my below link it will help you more 

    http://www.google.com/search?biw=1137&bih=548&tbm=isch&sa=1&ei=8qYjW6ecLYmm9QPfgL24DQ&q=chudai&oq=chudai&gs_l=img.3..0l10.116892.119707.0.120166.17.11.0.0.0.0.250.1049.0j5j1.6.0….0…1c.1.64.img..11.5.913…0i67k1.0.RLUI4zzIQjo

    June 15, 2018 at 12:06 pm #14846
    Gand
    Participant

    fuck you

    June 18, 2018 at 2:21 pm #14849
    meraland
    Participant

     

     

     

    why are you using for loop?

    ans:- he is using loop to fuck again and again

    you should use while loop

    ans :-no he is having his own black loop

    you pole your keypad in while loop and when button is pressed display it on LCD

    ans-he is having black loop with two led bulb when he saw two button loop automatically start 

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • EasyEda program has a major bug April 12, 2026
  • understanding transmission line properties from TDR plot April 12, 2026
  • isolating S-params in of PCB board without connectors April 12, 2026
  • Some opamp advice please April 12, 2026
  • want help with microprocessor April 11, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise