Arduino, Nodemcu and TB6560 dilemma

Thanks. I figured it out. The problem was when switching between Arduinos and nodemcu I always forget to put a D in front of the pin and I keep going for days trying to figure out why the voltage doesn't change when I set the output to high. Anyway, all good now. Thanks for your help.