So I was going to make an h-bridge circuit to control a motor in two directions. Does anyone know if I could just use code to make one. I know you can change the way that current goes through a gpio but I also know when a motor is going in one direction and then directed in the other that there will be a surge of current higher than normal due to conductance. Somethings telling me not to do it in code its safer. But I also heard Brandon Harris on a podcast (Amp Hour) say that you basically cannot mess up the imp with code.
Any way what do you guys think?