Display PWM

Two-Color LED Module

Two-color LED modules combine red/green LED channels so code can show red, green, yellow-ish blends, and status states.

Part images

KY-011 Module Photo. Module Photo for the KY-011 Two-Color LED Module. Image source: Joy-IT SensorKit KY-011 module documentation
KY-011 Pinout / Module Diagram. Pinout / Module Diagram for the KY-011 Two-Color LED Module. Image source: Joy-IT SensorKit KY-011 module documentation
KY-011 Arduino Wiring Diagram. Arduino Wiring Diagram for the KY-011 Two-Color LED Module. Image source: Joy-IT SensorKit KY-011 module documentation
KY-011 Raspberry Pi Wiring Diagram. Raspberry Pi Wiring Diagram for the KY-011 Two-Color LED Module. Image source: Joy-IT SensorKit KY-011 module documentation
KY-029 Module Photo. Module Photo for the KY-029 Dual-Color LED Module. Image source: Joy-IT SensorKit KY-029 module documentation
KY-029 Pinout / Module Diagram. Pinout / Module Diagram for the KY-029 Dual-Color LED Module. Image source: Joy-IT SensorKit KY-029 module documentation
KY-029 Arduino Wiring Diagram. Arduino Wiring Diagram for the KY-029 Dual-Color LED Module. Image source: Joy-IT SensorKit KY-029 module documentation
KY-029 Raspberry Pi Wiring Diagram. Raspberry Pi Wiring Diagram for the KY-029 Dual-Color LED Module. Image source: Joy-IT SensorKit KY-029 module documentation

What it is

Two-color LED modules combine red/green LED channels so code can show red, green, yellow-ish blends, and status states.

How students use it

Students use them for status lights, simple traffic indicators, game feedback, and PWM color blending.

Pins and power

Pin count and common pin behavior differ by KY-011 and KY-029 variants. Verify common anode/cathode before wiring.

Each LED color channel needs appropriate current limiting and Pico-safe GPIO current.

KY-011 and KY-029 variants are wired differently, so check the exact module before choosing active-high or active-low code.

Voltage and safety

Use current limiting and keep GPIO current within Pico limits.

Do not drive LED channels directly without current planning.

Module internals

Main component: Dual-color LED package/module.

Red/green LED package, resistors/support parts depending on module, PCB, and header.

Datasheet notes

This page covers the common 3mm two-color module variants in the 37-in-1 kit family.

Common libraries

Use machine.Pin for on/off or machine.PWM for brightness/color blending.

Common mistakes

Confusing common anode and common cathode, expecting full RGB color, and using one resistor for multiple independent channels.