if statement inside while loop

slipstick:
You read x and print it. Then you read another character and check if that is 255 to switch the LED on.

Steve

but x== Wire.read so its the same then i still changed it to x and doesnt work

wvmarle:
We are on the arduino forum so everyone here use the same compiler right? Or are there more compilers for the arduino sketches?

I wouldn't be so sure about that.

For me I guess that'd be gcc as that's by default installed on Linux computers. If you're running another flavour of Linux or maybe a BSD, you may have another version of gcc. If you're on Apple, or even Windows, fair chance you have a different compiler.

We may all be using the same IDE - well, partly, as a large part of what I do is library code at the moment and the IDE doesn't support .cpp or .h files, so doing that in xed, my text editor, then the IDE to run the compilation and take care of the upload - even same IDE doesn't mean same compiler. That are two different things.

hmm didn't know that thought every ide compiler was the same, thanks for the info.