Display the battery voltage level with LEDs on the TFC shield
Simulink Coder Support Package for NXP FRDM-KL25Z Board/ FRDM-TFC Shield
This block controls the four LEDs on the TFC Shield to indicate the present level of the battery voltage. Each LED represents 25% of the battery voltage. When the input is between 0.75 and 1.0, all the four LEDs are on and when the input reduces to a value between 0.0 and 0.25, only one of the LEDs is on.
During simulations without the hardware, this block does nothing.