32Views0Replies

Author Options:

Arduino sketch not working how i want it. Answered

Hi everyone, I've got a short sketch that doesn't behave how I expected to, just want to know what I did wrong.

What i want it to do.

push button 1 and led 13 lights up

push button 2 and no leds light up

push button 1 and 2 and Led 12 lights up

What it actually does is

push button 1 and led 13 lights up
push button 2 and no leds light up

push button 1 and 2 and Led 12 and 13 lights up.

Iv tried a few things, but it doesn't make any difference, any Ideas

thanks

Now how do I get the code on here without making a mess? heres a screen shot thankfully it a short sketch

Discussions