owh sorry I forgot to mention that the A and B signals doesn't connected to anywhere right now it's empty at the moment (I got the picture form the internet gonna find a better one)
ALWAYS post your own, correctly drawn wiring diagram. Hand drawn is preferred, especially over Fritzing idiot diagrams, which are often wrong, and almost always misleading.
GPIO_NUM_12 and GPIO_NUM_13 can be tricky to use on a ESP32 with those lines being used for boot and program load. I recommend against using GPIO_NUM_12.
the wiring image at the first post is all there is I haven't connected it to anything yet
for the code im just using a simple blink script to check if the program is running or not. when I plug in the ESP32 to power it should've blink but it doesn't
I have a simple blink script just to tell if the ESP32 Script is running or not. Whenever I power the ESP32 (with RS485 connected) the ESP doesn't blink, I tried to plug and unplug all of the connection to the RS485 ant the script starts to work.
Then I tried to do the same thing but this time I unplug the pins one by one (except the GND and VCC pins) and when I unplug the RO pin the blink started.