Buttons and states

Hi,

Im making a project which has 3 buttons. This buttons are used to switch between states.

When I press button 0 the state becomes 0. When I press button 1, the state becomes 1 for a moment. But after that the state becomes 0 zero again. I want the button state to remain 1 when I press it.

Any idea what im doing wrong?

I know it would help if I post the code. But its a lot.....

I know it would help if I post the code.

That's pretty much the only way you can get help...

arduino0o0:
I know it would help if I post the code. But its a lot.....

Trim you code to a bare minimum :wink: Or create a new simple code that exhibits the problem.