I have three states for one hack and would like to button activate it such that everytime the button is pressed/released, the next hack variation is enabled. So, the button would basically toggle through the, for instance, three variations of the code. Any help is greatly appreciated.
Well u could use what some Call Edge Pad Conditions..
what they do is they turn on for a sec only on Initiating the button and then when u let go comeone for a second again .
normaly 2 diffrent addresses so u could find that..
then all u would need to do is set the code to activate kinda like this
Condition code (not Pressed)
00000000 00000001
Condition Code (Pressed Pressed)
00000000 00000002
Condition Code (Let go of Button)
00000000 00000003
i dont know what u exactly mean but this might be what your looking for
you could post your code with the 3 values and then we could take a look into helping u better
I think what you want is some kind of cycle code, I don't have much expirence with them myself but they involve gecko register operations
Thank you both for your responses. I appreciate it. Yes, I am looking more for a "cylce" code.
As wiiztec said, you could use the gecko registers.
Just make a code that when a button is pressed, it increases gecko register N with 1 and then a delay, and if it is above 3 > set it to 0.
And then check what the value is of the gecko register N