Can't figure that one out: Input not being read!
Posted: Tue Apr 14, 2015 1:19 am
Hi everyone,
I'm completely puzzled: I have a program/hardware that used to work. left it aside for a couple of weeks, now it only "partialy" work ! Let me explain.
This is a game for paintball. it receives hit, count them, add some damage, heal over time, etc ....
my interface with the operator consist of 4 buttons and one toggle:
toggle: run or config mode
PB1 : Increase
PB2: Decrease
PB3: Start (run mode) or Enter (config mode)
PB4: Stop (run mode) or Next (config mode)
Please note that they all have a 10K pull-down resistor.
in order to set a few parameter, the user must toggle to SETUP, and using the NEXT pb, he can go thru parameters. When he want to change one, he must select it with ENTER. he can now adjust the value using INC or DEC. When the value is OK, he validate its choice by pressing ENTER. All these works fine (the 4 buttons and the toggle)
when I'm in RUN mode, the start button shall start the game....it does not !!!! It used to work, by I haven't change the code (unless I'm a nightwalker/coder)
I can't make it work ....totally confused... I even created a new routine, copy/pasted everything, in case the routine was somehow corrupted ....No matter what I do when in run mode, the ENTER button is simply ignored !!
What the <beeep> am I missing ???
I'm completely puzzled: I have a program/hardware that used to work. left it aside for a couple of weeks, now it only "partialy" work ! Let me explain.
This is a game for paintball. it receives hit, count them, add some damage, heal over time, etc ....
my interface with the operator consist of 4 buttons and one toggle:
toggle: run or config mode
PB1 : Increase
PB2: Decrease
PB3: Start (run mode) or Enter (config mode)
PB4: Stop (run mode) or Next (config mode)
Please note that they all have a 10K pull-down resistor.
in order to set a few parameter, the user must toggle to SETUP, and using the NEXT pb, he can go thru parameters. When he want to change one, he must select it with ENTER. he can now adjust the value using INC or DEC. When the value is OK, he validate its choice by pressing ENTER. All these works fine (the 4 buttons and the toggle)
when I'm in RUN mode, the start button shall start the game....it does not !!!! It used to work, by I haven't change the code (unless I'm a nightwalker/coder)
I can't make it work ....totally confused... I even created a new routine, copy/pasted everything, in case the routine was somehow corrupted ....No matter what I do when in run mode, the ENTER button is simply ignored !!
What the <beeep> am I missing ???