一键导入
macroblock
Macroblock Inc. MPN encoding patterns, LED driver decoding, and handler guidance. Use when working with Macroblock LED drivers or MacroblockHandler.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Macroblock Inc. MPN encoding patterns, LED driver decoding, and handler guidance. Use when working with Macroblock LED drivers or MacroblockHandler.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when refactoring, cleaning up, or enhancing the lib-electronic-components codebase. Provides guidance on architecture patterns, known issues, duplication hotspots, and recommended improvements.
Base skill for working with electronic components in this library. Use when adding new component types, manufacturer handlers, or working with MPN (Manufacturer Part Number) operations, BOM entries, or component classification.
Use this skill BEFORE creating a PR to ensure all documentation, skills, and learnings are updated. Critical for preserving institutional knowledge and preventing documentation drift.
Use when working with component similarity calculations - comparing MPNs, finding equivalent parts, implementing new similarity calculators, or understanding how component matching works.
Use when working with capacitor similarity calculations - comparing ceramic/electrolytic/film capacitor MPNs, understanding value/voltage/dielectric matching, or capacitor-specific similarity logic.
Use when working with connector similarity calculations - comparing connector MPNs, understanding pin count/pitch/family matching, or connector-specific similarity logic.
| name | macroblock |
| description | Macroblock Inc. MPN encoding patterns, LED driver decoding, and handler guidance. Use when working with Macroblock LED drivers or MacroblockHandler. |
Macroblock specializes in LED driver ICs for displays.
MBI[SERIES][MODEL][PACKAGE][-OPTIONS]
| | | | |
| | | | +-- Options (TR = Tape and Reel)
| | | +-- Package code (GP, GF, GN, etc.)
| | +-- Model number (024, 039, 153)
| +-- Series (5=constant current, 6=DC-DC, 1=scan)
+-- MBI = Macroblock Inc.
MBI5024GP
| | | ||
| | | |+-- P = PDIP or SOP-24 variant
| | | +-- G = package type indicator
| | +-- 024 = 16-channel model
| +-- 5 = Constant current series
+-- MBI = Macroblock Inc.
MBI5153-TR
| | ||
| | |+-- TR = Tape and Reel
| | +-- (no package code, bare part number)
| +-- 5153 = 48-channel model
+-- MBI = Macroblock Inc.
16-bit shift register based constant current drivers. The workhorses of LED display drivers.
| Part | Channels | Features |
|---|---|---|
| MBI5024 | 16 | Basic constant current |
| MBI5039 | 16 | Error detection |
| MBI5040 | 16 | Enhanced features |
| MBI5041 | 16 | Variant |
| MBI5042 | 16 | Variant |
| MBI5050 | 16 | High-end 16-ch |
| MBI5124 | 16 | Enhanced variant |
| MBI5153 | 48 | High channel count |
| MBI5252 | 48 | Enhanced 48-ch |
| MBI5353 | 48 | Premium 48-ch |
Switching LED drivers for backlighting and general LED lighting.
| Part | Description |
|---|---|
| MBI6651 | DC-DC LED driver |
| MBI6652 | Enhanced variant |
| MBI6661 | High power variant |
Row/scan drivers for LED matrix displays, work in conjunction with MBI5xxx column drivers.
| Part | Description |
|---|---|
| MBI1801 | P-channel scan driver |
| MBI1802 | Enhanced scan driver |
| Code | Package | Notes |
|---|---|---|
| GP | SOP-24 | Standard SOP package |
| GF | SSOP-24 | Shrink SOP |
| GH | TSSOP-24 | Thin SOP |
| GS | SSOP-24 | SSOP variant |
| GT | TSSOP-24 | TSSOP variant |
| GN | QFN | Quad flat no-lead |
| GQ | QFN | QFN variant |
| TE | TQFP | Thin QFP |
| TF | TQFP-48 | 48-pin TQFP |
| TP | TQFP-64 | 64-pin TQFP |
| S | SOP | SOP generic |
| T | TSSOP | TSSOP generic |
| N | QFN | QFN generic |
| P | PDIP | Through-hole DIP |
| Suffix | Meaning |
|---|---|
| -TR | Tape and Reel packaging |
| Part | Channels | Application |
|---|---|---|
| MBI5024 | 16 | Standard displays |
| MBI5039 | 16 | With fault detection |
| MBI5050 | 16 | Premium 16-ch |
| MBI5153 | 48 | High-density displays |
| MBI5252 | 48 | Enhanced 48-ch |
| MBI5353 | 48 | Premium 48-ch |
// Extract series prefix (MBI + first digit)
// MBI5024GP -> MBI5
// MBI6651 -> MBI6
// MBI1801 -> MBI1
if (upperMpn.matches("^MBI5[0-9]{3}.*")) return "MBI5";
if (upperMpn.matches("^MBI6[0-9]{3}.*")) return "MBI6";
if (upperMpn.matches("^MBI1[0-9]{3}.*")) return "MBI1";
// Pattern: MBI[156]xxx[package-code]
Pattern packagePattern = Pattern.compile("^MBI[156][0-9]{3}([A-Z]{1,2}).*$");
// Decode package using lookup table
PACKAGE_CODES.put("GP", "SOP-24");
PACKAGE_CODES.put("GF", "SSOP-24");
PACKAGE_CODES.put("GN", "QFN");
// Extract MBI[156]xxx - the core 7-character part number
// MBI5024GP -> MBI5024
// MBI5153-TR -> MBI5153
Pattern basePattern = Pattern.compile("^(MBI[156][0-9]{3}).*$");
// MBI5xxx - Constant current LED drivers
"^MBI5[0-9]{3}[A-Z0-9-]*$"
// MBI6xxx - DC-DC LED drivers
"^MBI6[0-9]{3}[A-Z0-9-]*$"
// MBI1xxx - Scan drivers
"^MBI1[0-9]{3}[A-Z0-9-]*$"
The handler provides useful helper methods:
// Get channel count for known parts
int channels = handler.getChannelCount("MBI5024"); // Returns 16
// Check driver type
handler.isConstantCurrentDriver("MBI5024"); // true
handler.isDCDCDriver("MBI6651"); // true
handler.isScanDriver("MBI1801"); // true
// Get series description
handler.getSeriesDescription("MBI5"); // "Constant Current LED Drivers"
Parts with the same base number but different packages are replacements:
Parts in the same series with different model numbers are NOT replacements:
manufacturers/MacroblockHandler.javaComponentType.IC, ComponentType.LED_DRIVER| MPN | Description | Channels |
|---|---|---|
| MBI5024GP | Constant current, SOP-24 | 16 |
| MBI5039GP | With error detection, SOP-24 | 16 |
| MBI5153 | High channel count | 48 |
| MBI5252 | Enhanced 48-ch | 48 |
| MBI6651 | DC-DC driver | N/A |
| MBI1801 | Scan driver | N/A |
Typical LED display driver setup:
MBI5xxx (Column Drivers) - Constant current sink
|
v
LED Matrix
^
|
MBI1xxx (Row/Scan Drivers) - P-channel switch