如何在不使用AnalogWrite的情况下使用Arduino IDE制作PWM信号?
嗨,有人可以帮助您在Arduino IDE上无需模拟的PWM(或非常相似)的信号,因为AnalogWrite无法在ESP32上使用。
并且不使用库。
我需要它以0到255的价值。
我当时考虑使用第二个核心,但我必须控制多个引脚。
Hi can someone help with crating a pwm(or very similar) signal without analogwrite on the Arduino IDE because analogwrite wont work on the esp32.
And without using a library.
I need it to take values from 0 to 255.
I was thinking to use the second core one the esp32 but I have to control more than one pin.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用延迟或 millis 功能创建PWM脉冲。例如:
当您更改延迟值时,您可以更改责任周期级别!
you can create PWM pulse with delay or millis function. for example:
when you change the delay value, you can change duty-cycle level!