Analog Write in Matlab App Designer?

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.

Respuestas (1)

Prem Ankur
Prem Ankur el 9 de Nov. de 2018
Editada: Prem Ankur el 9 de Nov. de 2018

0 votos

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

Categorías

Más información sobre MATLAB en Centro de ayuda y File Exchange.

Productos

Etiquetas

Preguntada:

el 7 de Nov. de 2018

Editada:

el 9 de Nov. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by