I want to control a Brushless out runner motor. it has three phases. L1, L2, L3
I conected L1, L2, L3 to 4,5,6,pins and named them as L1, L2, L3 in void setup()
I need to connect L1 to the 5v and L2 to the ground and keep L3 open. This is a part of my code.
pinMode(L1, HIGH) ;
pinMode(L2, LOW) ;
pinMode(L3, LOW) ;
I need to pass currunt through only L1, L2 and keep L3 without passing any current for that moment. but it passes current through all three phases.
So I need to block L3.
In other way I need to use the pins as the switches and keep L1, L2 closed and L3 opend
how to write the code. I want to do this without using transisters as the switches