You need to set the idle level first at the top of your program, then send your data.

For true mode, your serial output must be set high, for inverted, it's low.

T2400, N2400 are for SEROUT, all other numbers 396,16780 are for SEROUT2