On the python side how i send data;
for x in xrange(0, 512, 32):
ser.write(str(x/32 + 1) + "\n")
on Arduino how i read the data;
if (incomingByte == "1\n") {
digitalWrite(A0, HIGH);
}
Problem is Arduino can not recognize the data with "\n". If i open serial monitor in "newline" mode and write "1", Arduino catches it. But(!) if i write "1\n" in "no line ending" mode, again Arduino can not recognize it. What could be the problem Thanks.