【发布时间】:2023-01-23 03:28:16
【问题描述】:
上周出于某种原因,我重新安装了我的膝盖和 arduino ide。我遇到的问题是,在重新安装之前编写的某些 esp 上运行良好的代码上,现在当我部署它时出现此错误。
这是一段代码:
const int PinCh1 = 13;
const int PinCh2 = 15;
const int freq = 5000;
const int Channel1 = 0;
const int Channel2 = 1;
const int resolution = 16;
ledcSetup(Channel1, freq, resolution);
ledcSetup(Channel2, freq, resolution);
这是错误:
E (76891) ledc: requested frequency and duty resolution can not be achieved, try reducing freq_hz or duty_resolution. div_param=63
第一次我认为我买的新 esp 有问题,但我拿了一个旧的,我只是在上面再次编写了该代码并得到了同样的错误。所以我几乎可以肯定这是我在 arduino ide 上安装的最后一个版本中的东西......我不知道我以前有什么......
对此有什么想法吗?
谢谢
【问题讨论】:
标签: esp32 arduino-esp32