Cooliced

Pin 7 & 8 is fine for generating the voltage to the speed control

But you need another pin for Forward and another for Reverse (If you need reverse)

Otherwise you seem OK

Phil