Hello,
I've got a 3.2 setup to transmit serial communication through Serial1 with the following commands
uint8_t message[3] = {0x00, 0x01, 0x00};
Serial1.begin(4800, SERIAL_8N1_RXINV_TXINV);
Serial1.write(message, 3);
The output looks like this:
I thought with SERIAL_8N1_RXINV_TXINV that 0 = LOW and 1 = HIGH and default (not transmitting) would be the same as 0. It seems like in-fact 0=HIGH, 1=LOW and default (not transmitting) is the same as 1 (LOW). Is there a reason for this functionality? If I need default (not transmitting) to equal 0 is it best I bitbang the output myself?
The same output without SERIAL_8N1_RXINV_TXINV looks like this:
Any assistance in clarifying this is greatly appreciated.
Cheers,
Spen
I've got a 3.2 setup to transmit serial communication through Serial1 with the following commands
uint8_t message[3] = {0x00, 0x01, 0x00};
Serial1.begin(4800, SERIAL_8N1_RXINV_TXINV);
Serial1.write(message, 3);
The output looks like this:
I thought with SERIAL_8N1_RXINV_TXINV that 0 = LOW and 1 = HIGH and default (not transmitting) would be the same as 0. It seems like in-fact 0=HIGH, 1=LOW and default (not transmitting) is the same as 1 (LOW). Is there a reason for this functionality? If I need default (not transmitting) to equal 0 is it best I bitbang the output myself?
The same output without SERIAL_8N1_RXINV_TXINV looks like this:
Any assistance in clarifying this is greatly appreciated.
Cheers,
Spen