This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

RGB LED

Set the RGB LED to a desired color

Library

Simulink Coder Support Package for NXP FRDM-KL25Z Board/FRDM-KL25Z

Description

Set the RGB LED to a desired color by providing inputs to the Red, Green, and Blue LEDs, labeled R, G, and B. The block inputs accept values in the range 0 to 255.

For example, to output the color red, set the R input value to a value greater than 0, G and B to 0.

During simulations without the hardware, this block does nothing.