LED (Green)

../../../../_images/led_light_h.png

Overview

Single-color LED module, lights up on high level, turns off on low level

Technical Specifications

Operating voltage: VCC 3.3V -5V

Module dimensions: 24*48mm

Mounting: 2 plastic building block compatible through-holes

Control method: Digital input

Pin Definition

Pin

Definition

GND

Ground

VCC

Power

DI

Digital input

NC

Not connected

Example Code

Make the LED module blink.

from mpython import *

p0 = MPythonPin(0, PinMode.OUT)

import time
while True:
    p0.write_digital(1)
    time.sleep(0.5)
    p0.write_digital(0)
    time.sleep(0.5)
../../../../_images/led.png