# Xbee "bug" API mode

**URL:** <https://forums.digi.com/t/xbee-bug-api-mode/18162>\
**Category:** XBee & XBee Gateway\
**Tags:** pwm, api-mode, bug, led, xbee-pro\
**Created:** [March 22, 2017, 3:45pm UTC](https://forums.digi.com/t/xbee-bug-api-mode/18162 "2017-03-22T15:45:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim\_Grasset](https://avatars.discourse-cdn.com/v4/letter/t/8c91f0/32.png) [@Tim\_Grasset](https://forums.digi.com/u/Tim_Grasset)\
**Post date:** [March 22, 2017, 3:45pm UTC](https://forums.digi.com/t/xbee-bug-api-mode/18162/1 "2017-03-22T15:45:57Z")

</div>

Hi !

First I apologize for my English, I im Swiss.

So, my problem is: I use 2 Xbee in API mode –\> coordinator/end device.

On my xbee remote:

I have one led connected on the pin DIO0, and one on the pin PWM0.

I output high the pin DIO0 –\> My led turn-on. Great ! 😃

I make the same for my PWM0 led, I set the PWM0 at 50%. Great! It also works.

But after some second, all LEDs turn off for 20 ms and only the LED DIO0 comes on again.

I don’t know how to fix this “bug”.

I have a look on all forums, and can not figure out how to fix this.

Thank you for your reply and Bonne journée 😃

---

<div class="post-metadata">

**Author:** ![DystopianFerret](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@DystopianFerret](https://forums.digi.com/u/DystopianFerret)\
**Post date:** [March 24, 2017, 12:01pm UTC](https://forums.digi.com/t/xbee-bug-api-mode/18162/2 "2017-03-24T12:01:58Z")

</div>

Are you communicating between the radios at all? Or are you just using the pins to power some LEDs?

---

<div class="post-metadata">

**Author:** ![Tim\_Grasset](https://avatars.discourse-cdn.com/v4/letter/t/8c91f0/32.png) [@Tim\_Grasset](https://forums.digi.com/u/Tim_Grasset)\
**Post date:** [April 28, 2017, 3:17pm UTC](https://forums.digi.com/t/xbee-bug-api-mode/18162/3 "2017-04-28T15:17:53Z")

</div>

I found my problem, I made a mistake with the pull up
