rewrite brushless pinout logic