Keypad.c with inverse logic and I/O
Posted: Sat May 09, 2009 8:59 pm
Hi,
I have recently bought my Flowcode PRO and I have a board that I built to use for a AV switch using an arrow-keypad, enter and escape.
I was in the process of trying to learn C before I ran into flowcode.
Now, my keypad connections are similar to the keypad e-block, only that the rows are connected to outputs and columns are connected to inputs.
Also my logic is inverse: I was suppose to use 0 logic as active.
I thought that modifying the keypad.c in components would make the necessary adaptation so I went ahead and gave it a chance but something does not work.
Can anyone please look into my changes and point me into the right direction.
Thanks.
I am including my sch. and c file below:
I have recently bought my Flowcode PRO and I have a board that I built to use for a AV switch using an arrow-keypad, enter and escape.
I was in the process of trying to learn C before I ran into flowcode.
Now, my keypad connections are similar to the keypad e-block, only that the rows are connected to outputs and columns are connected to inputs.
Also my logic is inverse: I was suppose to use 0 logic as active.
I thought that modifying the keypad.c in components would make the necessary adaptation so I went ahead and gave it a chance but something does not work.
Can anyone please look into my changes and point me into the right direction.
Thanks.
I am including my sch. and c file below: