TheSpook:
LED program not working need help dont know why
Below is code
for ( counter=0; counter = 5; counter++){
Well, I have no idea what the code is supposed to do. You should probably tell what you want it to do. I don't have a crystal ball and I can't read minds.
I have no idea what actually happens. You should probably tell that too. I mean if you really want help.
But I do know that this for loop will never execute. On the very first iteration counter is 0 and the condition to run the loop says it has to equal 5. 0 != 5 so the loop will never run.
ok well im creating a program on vb that controls leds the vb program generates a 5bit binary number which i have then ported to arduino. i then want arduino to read each bit separately and then check if its a 1 or 0