arduino 3.0.2版本,使用ledc出不来pwm波

guoyufei
Posts: 2
Joined: Mon May 18, 2020 10:48 am

arduino 3.0.2版本,使用ledc出不来pwm波

Postby guoyufei » Mon Jul 22, 2024 11:35 pm

Code: Select all

    ledcAttach(33, 100, 8);
    ledcAttach(32, 100, 8);
    ledcAttach(27, 100, 8);
    ledcAttach(21, 100, 8);

    ledcWrite(33, 128);
    ledcWrite(32, 128);
    ledcWrite(27, 128);
    ledcWrite(21, 128);
在setup()调用以上内容初始化33、32、27、21这四路pwm,但是21引脚没波形,不知道为什么。

Who is online

Users browsing this forum: No registered users and 72 guests