05-16-2015 10:46 AM - edited 05-16-2015 10:49 AM
how when pressing any key on the keyboard , that value is displayed , and the switch, the value of which still exist , just as Noa press any key other then the original key new value updated , please help me ! thanks!
05-17-2015 04:00 AM
how when pressing any key on the keyboard , that value is displayed , and the switch, the value of which still exist , just as Noa press any key other then the original key new value updated , please help me ! thanks!
05-18-2015 10:37 AM
Hi Leoking92,
I am confused about the question.
What happens when you press a key on the keyboard?
What switch are you refering to?
Are you trying to figure out what happens when you press to keys at once?
regards,
Michael
05-18-2015 11:09 AM
HI ! I say more for you to understand my problem specifically like this: I want to use the 4x4 keypad to control the display on the LCD . for example , when you press 1 then displays temperature value , even when you press the number 2 display speed ..... I tried using case statement , but when I hit it shown on there when I not hit it back to the default , you can tell me how do I get it? Thank you !
05-18-2015 04:15 PM
It could be helpful if you posted the code you are using.
05-19-2015 10:25 AM
I want to use this keypad to control the display on the LCD . for example : press 1 , the temperature display ; press 2 , then display the motor speed ... , in the above code I have tried with your code but it works hok desired , please help me !
i can't post code up to forum, you should link: https://drive.google.com/file/d/0B1om76pfINl5NkNadDNLeTN5Nzg/view?usp=sharing
05-19-2015 11:45 AM
Have you tried using the debugging tools? You can use the highlight operation function and the break points to figure out where you code is going wrong.
I'm not certain how the LCD works, but maybe you have to clear it before each new input.
05-19-2015 12:22 PM
My problem is when clicked , the LCD display on demand , but when I released it jumps competition on default values , and I do not want this to happen , I want it to keep the value of a button, and only change while pressing a different button
05-20-2015 09:59 AM
You can try using a shift register to ensure that the same case is selected each loop until you push a new button.
You may also try placing I2C 8 inside the case statement so you only write to the LCD when you actually choose a new case.
05-20-2015 09:31 PM
The problem is when I let go of the button again , the value is not maintained when the press also lost . I have to do?