Set the LED Duty Cycle
tools.ledduty(perc)
Sets the LED duty cycle.
A perc
of zero will put back to default duty cycle.
When running on battery, the LEDs are limited to a maximum of 25%.
A low value, e.g. 5, will dim the LEDs and save about 6mA on the ip.1