Noobish question!

TolpuddleSartre:

if((digitalRead(22),1)&

What do you think the comma is doing in that expression?

ahh....

changed it to

if((digitalRead(22)) == 1 &

and works now.. Feeling quite stupid now :smiley:

thanks!