Effacer les filtres
Effacer les filtres

Analog Write in Matlab App Designer?

3 vues (au cours des 30 derniers jours)
Thomas Hodge
Thomas Hodge le 7 Nov 2018
Modifié(e) : Prem Ankur le 9 Nov 2018
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.

Réponses (1)

Prem Ankur
Prem Ankur le 9 Nov 2018
Modifié(e) : Prem Ankur le 9 Nov 2018
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

Catégories

En savoir plus sur Programming dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by