Serial.write(0x02) write 0x3F WTF ???

Hi,

When I write: Serial.write(0x02);

And next, I read my RS232 port: I read 0x3F

Why ????

Thanks you !!

What does Serial have to do with your RS232 port. Arduino's nor PC's have RS232!

Mark

Assuming you mean a PC serial port and you have a proper adapter, then there might be a baud rate mismatch.

Yes.. TTL and RS232 it was the problem ! Thanks