Page 1 of 1

questions on keypads

Posted: Sun Jan 20, 2013 1:27 am
by brandonb
i've been doing flowcode for over a year and havent done anything with keypads, im not sure how to do all the string stuff and what all the string stuff actually does, can you guys help me out with this

Re: questions on keypads

Posted: Sun Jan 20, 2013 8:03 am
by brandonb
i have one way of doing the numbers that i came up with but it is a bit weird

Re: questions on keypads

Posted: Sun Jan 20, 2013 3:39 pm
by medelec35
Hi Brandon,
I think you're like this?
I have Modified your Flowchart to efficiently transform it into a calculator that performs additions (from the PM you sent).
Results shown on bottom line of LCD and in Ulong therefore 0 to 4294967295

To keep adding numbers, enter number then press * key
E.g
56789
*
1234567
*
12
*
Will display
1291368 on the lower line.

Pressing # is the same as All Clear (AC) function on a calulator

The keypad was not connected, so I have connected it portB.
Is that correct?

Hope this helps.

Martin

Re: questions on keypads

Posted: Sat Feb 02, 2013 9:27 am
by brandonb
thanks martin, since i dont have a keypad i found a better resource (remote)
the toggle is a bit different than explained in tutorials for this remote
when you press a button it changes toggle state, if hold button or release button it does not change state
this makes it possible for me to have a wireless keypad and use the directional buttons in the middle to control the menu options :D https://dl.dropbox.com/u/10367218/remote%20keypad.JPG no matter how long i hold any button since using a old_toggle<>toggle decsision it only logs changes :D examle file below ($1 remote)
< buttons 0-9 always return 0-9 command >

Re: questions on keypads

Posted: Sat Feb 02, 2013 8:54 pm
by medelec35
Hi Brandon,
Using IR remote to enter numbers is a great idea!

Martin