Loading...
Loading...
Compare original and translation side by side
MPN ──► LCSC C-number ──► easyeda2kicad ──► .kicad_sym + .kicad_mod + .step ──► Zener wrapper (.zen)components/@stdlib/generics/Resistor.zenCapacitor.zenLed.zenThermistor.zenMPN ──► LCSC C编号 ──► easyeda2kicad ──► .kicad_sym + .kicad_mod + .step ──► Zener封装文件(.zen)components/@stdlib/generics/Resistor.zenCapacitor.zenLed.zenThermistor.zeneasyeda2kicadeasyeda2kicadcomponents/globfinderModule("./components/<Mfr>/<MPN>/<MPN>.zen")components/globfinderModule("./components/<Mfr>/<MPN>/<MPN>.zen")Cxxxxxxweb_search query="<MPN> site:lcsc.com"
read_web_page url=<top LCSC product page> objective="Find the LCSC C-number (e.g. C25804) and confirm package."https://www.lcsc.com/product-detail/.../C25804.htmlCxxxxx.html-TR-R7Cxxxxxxweb_search query="<MPN> site:lcsc.com"
read_web_page url=<LCSC顶级产品页面> objective="查找LCSC C编号(例如C25804)并确认封装类型。"https://www.lcsc.com/product-detail/.../C25804.html.htmlCxxxxx-TR-R7/_components/<Manufacturer>/<MPN>/mkdir -p components/<Manufacturer>/<MPN>
cd components/<Manufacturer>/<MPN>
easyeda2kicad --full --lcsc_id=Cxxxxx --output <MPN> --overwrite<MPN>.kicad_sym<MPN>.pretty/<something>.kicad_mod.pretty<MPN>.3dshapes/<something>.{wrl,step}.zenmv <MPN>.pretty/*.kicad_mod ./<MPN>.kicad_mod
rmdir <MPN>.pretty<MPN>.3dshapes/.kicad_mod--full--symbol --footprintpcb/_components/<Manufacturer>/<MPN>/mkdir -p components/<Manufacturer>/<MPN>
cd components/<Manufacturer>/<MPN>
easyeda2kicad --full --lcsc_id=Cxxxxx --output <MPN> --overwrite<MPN>.kicad_sym<MPN>.pretty/<something>.kicad_mod.pretty<MPN>.3dshapes/<something>.{wrl,step}.zenmv <MPN>.pretty/*.kicad_mod ./<MPN>.kicad_mod
rmdir <MPN>.pretty<MPN>.3dshapes/.kicad_mod--full--symbol --footprintpcb.kicad_sym.zenpython3 <SKILL_DIR>/scripts/zener-wrap.py \
--kicad-sym components/<Manufacturer>/<MPN>/<MPN>.kicad_sym \
--footprint <MPN>.kicad_mod \
--mpn <MPN> \
--manufacturer "<Manufacturer>" \
--output components/<Manufacturer>/<MPN>/<MPN>.zen.kicad_sym.zenmpnmanufacturerio()PowerGroundNetComponent(...)pins=+IN_AIN_POS_Avoltage="..."PowerNetAnalogDigital@stdlib/interfaces.zenno_connectpins=idiomatic-zenerreference-design.kicad_sym.zenpython3 <SKILL_DIR>/scripts/zener-wrap.py \
--kicad-sym components/<Manufacturer>/<MPN>/<MPN>.kicad_sym \
--footprint <MPN>.kicad_mod \
--mpn <MPN> \
--manufacturer "<Manufacturer>" \
--output components/<Manufacturer>/<MPN>/<MPN>.zen.kicad_sym.zenmpnmanufacturerio()PowerGroundNetComponent(...)pins=+IN_AIN_POS_APowervoltage="..."@stdlib/interfaces.zenAnalogDigitalNetpins=no_connectidiomatic-zenerreference-designpcb.tomlundefinedpcb.tomlundefined
If the workspace `pcb.toml` declares `members = [..., "components/*", ...]` (most do), the package is auto-discovered. Verify with:
```bash
pcb build components/<Manufacturer>/<MPN>
如果工作区的`pcb.toml`声明了`members = [..., "components/*", ...]`(大多数情况如此),则该包会被自动发现。可通过以下命令验证:
```bash
pcb build components/<Manufacturer>/<MPN>MyPart = Module("./components/<Manufacturer>/<MPN>/<MPN>.zen")
MyPart(
name="U1",
VDD=vdd_3v3,
GND=gnd,
# ...
)MyPart = Module("./components/<Manufacturer>/<MPN>/<MPN>.zen")
MyPart(
name="U1",
VDD=vdd_3v3,
GND=gnd,
# ...
)pcb bompcb bompcb bom boards/<Board>/<Board>.zen -f jsonmpn=Cxxxxx.zenpcb bom boards/<Board>/<Board>.zen -f jsonmpn=Cxxxxx.zen<SKILL_DIR>/scripts/zener-wrap.pypython3 zener-wrap.py \
--kicad-sym path/to/<MPN>.kicad_sym \
--footprint <MPN>.kicad_mod \
--mpn <MPN> \
--manufacturer "<Manufacturer>" \
--output path/to/<MPN>.zen \
[--datasheet docs/<MPN>.pdf] # optionalGNDVSSVEEAGNDDGNDV-GroundVCCVDDVPPVBUSVSV+AVDDDVDDVINVOUTPowerNetPIN_<num><SKILL_DIR>/scripts/zener-wrap.pypython3 zener-wrap.py \
--kicad-sym path/to/<MPN>.kicad_sym \
--footprint <MPN>.kicad_mod \
--mpn <MPN> \
--manufacturer "<Manufacturer>" \
--output path/to/<MPN>.zen \
[--datasheet docs/<MPN>.pdf] # 可选GNDVSSVEEAGNDDGNDV-GroundVCCVDDVPPVBUSVSV+AVDDDVDDVINVOUTPowerNetPIN_<num>~{NAME}~{...}pins=--symbol --footprint--full.kicad_mod(model ...)~#pins=~{NAME}~{...}pins=--symbol --footprint--full.kicad_mod(model ...)~#pins=