Main Content

RGB LED

Set the RGB LED to a desired color

Add-On Required: This feature requires the Simulink Coder Support Package for NXP FRDM-KL25Z Board add-on.

Library

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

  • RGB LED block

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.