markdown beaglebone-black-unable-to-set-pwm-period.md

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown beaglebone-black-unable-to-set-pwm-period.md相关的知识,希望对你有一定的参考价值。

When using a small frequency value
with [`analogWrite(pinString, dutyCycle, frequencyHz, callback)`](http://beagleboard.org/support/bonescript/analogWrite),
the following error can be thrown.

```js
var b = require('bonescript');
b.pinMode('P9_14', b.OUTPUT);
b.analogWrite('P9_14', 0.5, 10, function(res) { console.log(JSON.stringify(res)); });
```

```
info: Unable to update PWM period, period is set to 100000000
        Is other half of PWM enabled?
```

I haven't figured out how to reset it yet so I just run `reboot` or reset the device via the on-board button.

以上是关于markdown beaglebone-black-unable-to-set-pwm-period.md的主要内容,如果未能解决你的问题,请参考以下文章