PWM for 3-phase Inverter

You may need to move to driving the pwm control loop to being interrupt driven so that running
other code doesn't disturb its timing.

And of course delay() would have to be stripped out and replaced with millis() and micros() - delay is
only usuable in a toy program where nothing needs to cooperate.