Added write duty cycle functionality to BleCallback