LED

Figure 1. RGB LED for Status Indication

The RGB LED is controlled independently by three GPIOs from the microcontroller to show or mix red, green, and blue lighting colors. Theoretically, the user can generate almost all colors by mixing the three basic colors with duty control.

The indication function is not applied in this design, it is open for users to program the GPIOs to change the color of the RGB LED to indicate the measured distance.

The detailed GPIO pin definition is shown in the table below.

Table 1. RGB LED Pin Map
Part Name Manufacturer Part Number Signal Name Pin in MCU
RGB LED 19-337/R6GHBHC-A01/2T Green_LED_PB3 PB3
Red_LED_PB2 PB2
Blue_LED_PB1 PB1