LED Control
Overview
Turns an LED on or off.

Supported GPIO
- Raspberry Pi 0~4
- Raspberry Pi 5
- BeagleBone Black/Green
- Jetson Nano
- FT232H, FT2232H, FT4232H
- MCP2221
- NUMATO USB-GPIO (8~128CH)
Commands
[INIT]
Configures initial settings.
Item | Type | Description |
---|---|---|
GPIO Pin | WRITE | Enter the GPIO pin number to use. |
[WRITE_VALUE]
Turns the LED on or off.
Item | Type | Description |
---|---|---|
Value | WRITE | Enter the LED value (ON/OFF). |
Example
Objective
Blink an LED every second.
Parts
Part | Quantity |
---|---|
Raspberry Pi 4 * | 1 |
Red LED | 1 |
220Ω Resistor ** | 1 |
* Other compatible hardware may be used. See Supported GPIO for details.
** For resistor value selection method, refer to here.
** For resistor value selection method, refer to here.
Wiring
Connect each component to the corresponding connection as listed in each row below.
Component 1 | Component 2 | GPIO |
---|---|---|
LED + Pin | | 18 |
LED – Pin | 220Ω Resistor | GND |
