Actually "digitalWrite(Pin, 255)" WOULD be maximum power since it's 100% duty cycle and the frequency doesn't factor into it.
Anything less, say 50% - digitalWrite(Pin, 128), would work, but it would be at the 'stock' frequency of 500MHz and the actual torque measured at the wheel is considerably lower than if PWM is cycled at 30Mhz. The power savings may be because the lower frequency allows the wheels to gain some rotational momentum between cycling on and off.
We used the same method for using PWM dimmer control in our
firmware for the
OcuLED Lights, but not for maximizing power reasons. The stock 500 MHz frequency didn't work at all--anything above 128 resulted in lights full ON and anything below was completely OFF. We found 240Hz to be a happy medium to be able to finely-tune the brightness of the light, yet not notice any flicker.