Analog Write in Matlab App Designer?

1 次查看(过去 30 天)
Is there an equivalent to the analogWrite function in Matlab App Designer? I'm trying to change the color of an RGB LED and I can't find a function that works.

回答(1 个)

Prem Ankur
Prem Ankur 2018-11-9
编辑:Prem Ankur 2018-11-9
I believe you can use "writePWMDutyCycle" function in MATLAB, as analogWrite() function basically controls the duty cycle of the PWM signal.
Refer to the following documentation link for more information: https://www.mathworks.com/help/supportpkg/arduinoio/ug/control-leds-1.html

类别

Help CenterFile Exchange 中查找有关 Programming 的更多信息

标签

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by