- This topic has 4 replies, 4 voices, and was last updated 6 years, 8 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
|
Microcontroller › AVR › How to input array elements using keypad ??
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 ??
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
fuck you
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