Wheels rotates in different direction (Bluetooth Self Balancing Robot)

I don't know. Let me guess, (sorry, I'm a new in coding).

#define d_dir 3

I have ever changed it to other pinout but no luck.