If your board is an auto switcher, then you can use any code unmodified, like you posted in #3. Just make sure that you aren't using the pins that are designated for RE & DE. If you are, then simply reassign to unused pins.
If your board is an auto switcher, then you can use any code unmodified, like you posted in #3. Just make sure that you aren't using the pins that are designated for RE & DE. If you are, then simply reassign to unused pins.