mohan-bee/light-controller
This code defines the hardware sections and symbols for a PCB involving USB power, voltage regulation, ESP12F module, RGB outputs, I2C sensors, and debug points, along with rendering labels for test points.
- Version
- 1.0.30
- License
- unset
- Stars
- 2
Use with the tscircuit CLI
tsci is the tscircuit CLI. Install it with npm install -g tscircuit.
tsci clone mohan-bee/light-controller # download the package files into ./light-controller
tsci add mohan-bee/light-controller # add it to your project as @tsci/mohan-bee.light-controllerIn a cloned or new (tsci init) project: tsci dev starts a local preview, tsci build outputs Circuit JSON, and tsci push publishes to tscircuit.com.
dist/index.js
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
const pinLabels$8 = {
pin1: ["G"],
pin2: ["S"],
pin3: ["D"]
};
const AO3400A = (props) => {
return (jsx("chip", { pinLabels: pinLabels$8, symbol: jsxs("symbol", { children: [jsx("schematicpath", { points: [{ "x": 0, "y": 0 }, { "x": 1.524, "y": -0.508 }, { "x": 1.524, "y": 0.508 }, { "x": 0, "y": 0 }], strokeWidth: 0.254, strokeColor: "#880000", isFilled: true, fillColor: "#FEFEFE" }), jsx("schematicpath", { points: [{ "x": 5.08, "y": 0.508 }, { "x": 4.318, "y": -0.762 }, { "x": 5.842, "y": -0.762 }, { "x": 5.08, "y": 0.508 }], strokeWidth: 0.254, strokeColor: "#880000", isFilled: true, fillColor: "#FEFEFE" }), jsx("schematicpath", { points: [{ "x": 0, "y": 1.778 }, { "x": 2.54, "y": 1.778 }, { "x": 2.54, "y": 2.54 }, { "x": 5.08, "y": 2.54 }, { "x": 5.08, "y": 0.508 }], strokeWidth: 0.254, strokeColor: "#880000" }), jsx("schematicpath", { points: [{ "x": 0, "y": 0 }, { "x": 2.54, "y": 0 }, { "x": 2.54, "y": -2.54 }, { "x": 5.08, "y": -2.54 }, { "x": 5.08, "y": -0.762 }], strokeWidth: 0.254, strokeColor: "#880000" }), jsx("schematicpath", { points: [{ "x": 2.54, "y": -1.778 }, { "x": 0, "y": -1.778 }], strokeWidth: 0.254, strokeColor: "#880000" }), jsx("schematicpath", { points: [{ "x": -0.508, "y": 2.286 }, { "x": -0.508, "y": -2.286 }], strokeWidth: 0.254, strokeColor: "#880000" }), jsx("schematicpath", { points: [{ "x": 0, "y": 2.286 }, { "x": 0, "y": 1.27 }], strokeWidth: 0.254, strokeColor: "#880000" }), jsx("schematicpath", { points: [{ "x": 0, "y": -0.508 }, { "x": 0, "y": 0.508 }], strokeWidth: 0.254, strokeColor: "#880000" }), jsx("schematicpath", { points: [{ "x": 0, "y": -2.286 }, { "x": 0, "y": -1.27 }], strokeWidth: 0.254, strokeColor: "#880000" }), jsx("schematicpath", { points: [{ "x": -2.54, "y": 0 }, { "x": -0.508, "y": 0 }], strokeWidth: 0.254, strokeColor: "#880000" }), jsx("schematicpath", { points: [{ "x": 6.096, "y": 0.508 }, { "x": 5.588, "y": 0.508 }, { "x": 4.572, "y": 0.508 }, { "x": 4.064, "y": 0.508 }], strokeWidth: 0.254, strokeColor: "#880000" }), jsx("port", { name: "pin3", pinNumber: 3, aliases: ["D"], direction: "up", schX: 2.54, schY: 5.08, schStemLength: 2.54 }), jsx("port", { name: "pin1", pinNumber: 1, aliases: ["G"], direction: "left", schX: -5.08, schY: 0, schStemLength: 2.54 }), jsx("port", { name: "pin2", pinNumber: 2, aliases: ["S"], direction: "down", schX: 2.54, schY: -5.08, schStemLength: 2.54 })] }), supplierPartNumbers: {
"jlcpcb": [
"C20917"
]
}, manufacturerPartNumber: "AO3400A", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin1"], pcbX: "0.999998mm", pcbY: "-0.94996mm", width: "0.999998mm", height: "0.6500114mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin2"], pcbX: "0.999998mm", pcbY: "0.94996mm", width: "0.999998mm", height: "0.6500114mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin3"], pcbX: "-0.999998mm", pcbY: "0mm", width: "0.999998mm", height: "0.6500114mm", shape: "rect" }), jsx("silkscreenpath", { route: [{ "x": 0.726211400000011, "y": 1.5262098000000606 }, { "x": -0.726211400000011, "y": 1.5262098000000606 }, { "x": -0.726211400000011, "y": 0.49458879999997407 }] }), jsx("silkscreenpath", { route: [{ "x": 0.726211400000011, "y": -1.5262097999999469 }, { "x": -0.726211400000011, "y": -1.5262097999999469 }, { "x": -0.726211400000011, "y": -0.49458879999997407 }] }), jsx("silkscreenpath", { route: [{ "x": 0.726211400000011, "y": 0.45539659999997184 }, { "x": 0.726211400000011, "y": -0.45539659999985815 }] }), jsx("courtyardoutline", { outline: [{ "x": -1.748600000000124, "y": 1.774000000000001 }, { "x": 1.7993999999998778, "y": 1.774000000000001 }, { "x": 1.7993999999998778, "y": -1.774000000000001 }, { "x": -1.748600000000124, "y": -1.774000000000001 }, { "x": -1.748600000000124, "y": 1.774000000000001 }] })] }), cadModel: {
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C20917.obj?uuid=d777607a152f4f3aac9bb0d0c14ed6fd",
stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C20917.step?uuid=d777607a152f4f3aac9bb0d0c14ed6fd",
pcbRotationOffset: 180,
modelOriginPosition: { x: 0.000012700000070253736, y: -12699999956566899e-21, z: 0.050795 },
}, ...props }));
};
const pinLabels$7 = {
pin1: ["VIN"],
pin2: ["VSS", "GND"],
pin3: ["CE", "EN"],
pin4: ["NC"],
pin5: ["VOUT"]
};
const ME6211C33M5G_N = (props) => {
return (jsx("chip", { pinLabels: pinLabels$7, supplierPartNumbers: {
"jlcpcb": [
"C82942"
]
}, manufacturerPartNumber: "ME6211C33M5G_N", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin1"], pcbX: "-0.94996mm", pcbY: "-1.15817015mm", width: "0.4899914mm", height: "1.1569954mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin2"], pcbX: "0mm", pcbY: "-1.15817015mm", width: "0.4899914mm", height: "1.1569954mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin3"], pcbX: "0.94996mm", pcbY: "-1.15817015mm", width: "0.4899914mm", height: "1.1569954mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin4"], pcbX: "0.94996mm", pcbY: "1.14916585mm", width: "0.4899914mm", height: "1.175004mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin5"], pcbX: "-0.94996mm", pcbY: "1.14916585mm", width: "0.4899914mm", height: "1.175004mm", shape: "rect" }), jsx("silkscreenpath", { route: [{ "x": -1.5262098000000606, "y": -0.8557069500000125 }, { "x": -1.5262098000000606, "y": 0.8467026499999974 }] }), jsx("silkscreenpath", { route: [{ "x": 1.5262097999998332, "y": -0.8557069500000125 }, { "x": 1.5262097999998332, "y": 0.8467026499999974 }] }), jsx("silkscreenpath", { route: [{ "x": 0.4764023999998699, "y": 0.8467026499999974 }, { "x": -0.4764023999999836, "y": 0.8467026499999974 }] }), jsx("silkscreenpath", { route: [{ "x": -1.5008860000000368, "y": -1.1475021500000366 }, { "x": -1.5060010105125912, "y": -1.1863545121365178 }, { "x": -1.520997462536343, "y": -1.2225591500000519 }, { "x": -1.5448533726489586, "y": -1.253648777350918 }, { "x": -1.575943000000052, "y": -1.277504687463761 }, { "x": -1.6121476378634725, "y": -1.2925011394875128 }, { "x": -1.6510000000000673, "y": -1.2976161499999534 }, { "x": -1.6898523621366621, "y": -1.2925011394875128 }, { "x": -1.7260570000000826, "y": -1.277504687463761 }, { "x": -1.7571466273510623, "y": -1.253648777350918 }, { "x": -1.781002537463678, "y": -1.2225591500000519 }, { "x": -1.7959989894875434, "y": -1.1863545121365178 }, { "x": -1.8011140000000978, "y": -1.1475021500000366 }, { "x": -1.7959989894875434, "y": -1.1086497878634418 }, { "x": -1.781002537463678, "y": -1.0724451499999077 }, { "x": -1.7571466273510623, "y": -1.041355522648928 }, { "x": -1.7260570000000826, "y": -1.0174996125363123 }, { "x": -1.6898523621366621, "y": -1.0025031605124468 }, { "x": -1.6510000000000673, "y": -0.9973881500000061 }, { "x": -1.6121476378634725, "y": -1.0025031605124468 }, { "x": -1.575943000000052, "y": -1.0174996125363123 }, { "x": -1.5448533726489586, "y": -1.041355522648928 }, { "x": -1.520997462536343, "y": -1.0724451499999077 }, { "x": -1.5060010105125912, "y": -1.1086497878634418 }, { "x": -1.5008860000000368, "y": -1.1475021500000366 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "-0.1397mm", pcbY: "2.74809785mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -2.0534000000000106, "y": 1.998097850000022 }, { "x": 1.7739999999998872, "y": 1.998097850000022 }, { "x": 1.7739999999998872, "y": -2.108702149999999 }, { "x": -2.0534000000000106, "y": -2.108702149999999 }, { "x": -2.0534000000000106, "y": 1.998097850000022 }] })] }), cadModel: {
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C82942.obj?uuid=460193f9bf2d42e58cf3c2f675b07dc6",
stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C82942.step?uuid=460193f9bf2d42e58cf3c2f675b07dc6",
pcbRotationOffset: 90,
modelOriginPosition: { x: 0.004489450000050965, y: 0.000012700000070253736, z: -0.049083 },
}, ...props }));
};
const pinLabels$6 = {
pin1: ["pin1"],
pin2: ["pin2"]
};
const BSMD1206_200_12V = (props) => {
return (jsx("chip", { pinLabels: pinLabels$6, symbol: jsxs("symbol", { children: [jsx("port", { name: "pin2", pinNumber: 2, aliases: ["2"], direction: "right", schX: 7.62, schY: 0, schStemLength: 2.54 }), jsx("port", { name: "pin1", pinNumber: 1, aliases: ["1"], direction: "left", schX: -5.08, schY: 0, schStemLength: 2.54 }), jsx("schematicpath", { points: [{ "x": 3.81, "y": 0 }, { "x": 5.08, "y": 0 }], strokeWidth: 0.254, strokeColor: "#880000" }), jsx("schematicpath", { svgPath: "M -1.27 0 C 0 2.54 1.27 0 1.27 0 C 2.54 -2.54 3.81 0 3.81 0", strokeWidth: 0.254, strokeColor: "#880000" }), jsx("schematicpath", { points: [{ "x": -2.54, "y": 0 }, { "x": -1.27, "y": 0 }], strokeWidth: 0.254, strokeColor: "#880000" })] }), supplierPartNumbers: {
"jlcpcb": [
"C883135"
]
}, manufacturerPartNumber: "BSMD1206_200_12V", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin1"], pcbX: "-1.445006mm", pcbY: "0mm", width: "1.1900916mm", height: "1.7279874mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin2"], pcbX: "1.445006mm", pcbY: "0mm", width: "1.1900916mm", height: "1.7279874mm", shape: "rect" }), jsx("silkscreenpath", { route: [{ "x": -0.9261856000000108, "y": 1.0926064000000082 }, { "x": -2.1163026000000116, "y": 1.0926064000000082 }] }), jsx("silkscreenpath", { route: [{ "x": 0.926210999999995, "y": 1.0926064000000082 }, { "x": 2.1163026000000116, "y": 1.0926064000000082 }] }), jsx("silkscreenpath", { route: [{ "x": -2.2687025999999975, "y": 0.9402064000000081 }, { "x": -2.2687025999999975, "y": -0.9402063999999939 }] }), jsx("silkscreenpath", { route: [{ "x": 2.2687025999999832, "y": 0.9402064000000081 }, { "x": 2.2687025999999832, "y": -0.9402063999999939 }] }), jsx("silkscreenpath", { route: [{ "x": -2.1163026000000116, "y": -1.092606399999994 }, { "x": -0.9261856000000108, "y": -1.092606399999994 }] }), jsx("silkscreenpath", { route: [{ "x": 2.1163026000000116, "y": -1.092606399999994 }, { "x": 0.926210999999995, "y": -1.092606399999994 }] }), jsx("silkscreenpath", { route: [{ "x": -14210854715202004e-30, "y": 0 }, { "x": -0.08441074011676619, "y": 0.2037855535998574 }, { "x": -0.11320167162334371, "y": 0.422474390000005 }, { "x": -0.08441074011676619, "y": 0.6411632264001383 }, { "x": 0, "y": 0.8449487799999957 }] }), jsx("silkscreenpath", { route: [{ "x": 2.842170943040401e-14, "y": 0 }, { "x": 0.08441074011679461, "y": -0.20378555359984318 }, { "x": 0.11320167162334371, "y": -0.42247438999999076 }, { "x": 0.08441074011679461, "y": -0.6411632264001241 }, { "x": 0, "y": -0.8449487799999957 }] }), jsx("courtyardoutline", { outline: [{ "x": -2.5105999999999966, "y": 1.3422000000000054 }, { "x": 2.5360000000000014, "y": 1.3422000000000054 }, { "x": 2.5360000000000014, "y": -1.3421999999999912 }, { "x": -2.5105999999999966, "y": -1.3421999999999912 }, { "x": -2.5105999999999966, "y": 1.3422000000000054 }] })] }), cadModel: {
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C883135.obj?uuid=7dbd95a5ee9a45949b72cb8147e267ff",
stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C883135.step?uuid=7dbd95a5ee9a45949b72cb8147e267ff",
pcbRotationOffset: 0,
modelOriginPosition: { x: 0, y: -12699999999199463e-21, z: 0 },
}, ...props }));
};
const pinLabels$5 = {
pin1: ["pin1"],
pin2: ["pin2"],
pin3: ["pin3"],
pin4: ["pin4"]
};
const DB128V_5_08_4P_GN_S = (props) => {
return (jsx("chip", { pinLabels: pinLabels$5, supplierPartNumbers: {
"jlcpcb": [
"C2915641"
]
}, manufacturerPartNumber: "DB128V_5_08_4P_GN_S", footprint: jsxs("footprint", { children: [jsx("platedhole", { portHints: ["pin1"], pcbX: "-7.62mm", pcbY: "0mm", outerDiameter: "2.2999954mm", holeDiameter: "1.5000224mm", shape: "circle" }), jsx("platedhole", { portHints: ["pin2"], pcbX: "-2.54mm", pcbY: "0mm", outerDiameter: "2.2999954mm", holeDiameter: "1.5000224mm", shape: "circle" }), jsx("platedhole", { portHints: ["pin3"], pcbX: "2.54mm", pcbY: "0mm", outerDiameter: "2.2999954mm", holeDiameter: "1.5000224mm", shape: "circle" }), jsx("platedhole", { portHints: ["pin4"], pcbX: "7.62mm", pcbY: "0mm", outerDiameter: "2.2999954mm", holeDiameter: "1.5000224mm", shape: "circle" }), jsx("silkscreenpath", { route: [{ "x": -10.759973399999922, "y": 2.699994600000082 }, { "x": -10.159999999999968, "y": 2.9796740000000455 }] }), jsx("silkscreenpath", { route: [{ "x": -10.759973399999922, "y": 3.699992599999973 }, { "x": -10.159999999999968, "y": 3.4204910000000837 }] }), jsx("silkscreenpath", { route: [{ "x": -10.759973399999922, "y": -3.499992999999904 }, { "x": -10.159999999999968, "y": -3.779596199999901 }] }), jsx("silkscreenpath", { route: [{ "x": -10.759973399999922, "y": -4.499991000000023 }, { "x": -10.159999999999968, "y": -4.2192956000000095 }] }), jsx("silkscreenpath", { route: [{ "x": -10.759973399999922, "y": -3.499992999999904 }, { "x": -10.759973399999922, "y": -4.499991000000023 }] }), jsx("silkscreenpath", { route: [{ "x": -10.759973399999922, "y": 3.699992599999973 }, { "x": -10.759973399999922, "y": 2.699994600000082 }] }), jsx("silkscreenpath", { route: [{ "x": 10.159999999999968, "y": 4.999990000000025 }, { "x": 10.159999999999968, "y": -5.200014999999894 }] }), jsx("silkscreenpath", { route: [{ "x": -10.159999999999968, "y": 4.999990000000025 }, { "x": 10.159999999999968, "y": 4.999990000000025 }] }), jsx("silkscreenpath", { route: [{ "x": -10.159999999999968, "y": 4.999990000000025 }, { "x": -10.159999999999968, "y": -5.200014999999894 }] }), jsx("silkscreenpath", { route: [{ "x": -10.159999999999968, "y": -5.199989599999981 }, { "x": 10.159999999999968, "y": -5.199989599999981 }] }), jsx("courtyardoutline", { outline: [{ "x": -11.019599999999969, "y": 5.253800000000069 }, { "x": 10.409999999999968, "y": 5.253800000000069 }, { "x": 10.409999999999968, "y": -5.482400000000098 }, { "x": -11.019599999999969, "y": -5.482400000000098 }, { "x": -11.019599999999969, "y": 5.253800000000069 }] })] }), cadModel: {
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C2915641.obj?uuid=a828c3641ac04b2a9349afc0e9ed6ad7",
stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C2915641.step?uuid=a828c3641ac04b2a9349afc0e9ed6ad7",
pcbRotationOffset: 180,
modelOriginPosition: { x: 0, y: 0, z: -6999999999646178e-21 },
}, ...props }));
};
const pinLabels$4 = {
pin1: ["RST"],
pin2: ["ADC"],
pin3: ["EN"],
pin4: ["GPIO16"],
pin5: ["GPIO14"],
pin6: ["GPIO12"],
pin7: ["GPIO13"],
pin8: ["VCC"],
pin9: ["GND"],
pin10: ["GPIO15"],
pin11: ["GPIO2"],
pin12: ["GPIO0"],
pin13: ["GPIO4"],
pin14: ["GPIO5"],
pin15: ["RXD0"],
pin16: ["TXD0"],
pin17: ["CS0"],
pin18: ["MISO"],
pin19: ["GPIO9"],
pin20: ["GPIO10"],
pin21: ["MOSI"],
pin22: ["SCLK"]
};
const ESP_12F_ESP8266MOD_ = (props) => {
return (jsx("chip", { pinLabels: pinLabels$4, supplierPartNumbers: {
"jlcpcb": [
"C82891"
]
}, manufacturerPartNumber: "ESP_12F_ESP8266MOD_", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin16"], pcbX: "-7.72560685mm", pcbY: "7.550658mm", width: "1.3999972mm", height: "2.499995mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin15"], pcbX: "-5.72561085mm", pcbY: "7.550404mm", width: "1.3999972mm", height: "2.499995mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin14"], pcbX: "-3.72561485mm", pcbY: "7.550658mm", width: "1.3999972mm", height: "2.499995mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin13"], pcbX: "-1.72561885mm", pcbY: "7.549896mm", width: "1.3999972mm", height: "2.499995mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin12"], pcbX: "0.27437715mm", pcbY: "7.550658mm", width: "1.3999972mm", height: "2.499995mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin11"], pcbX: "2.27437315mm", pcbY: "7.55142mm", width: "1.3999972mm", height: "2.499995mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin10"], pcbX: "4.27436915mm", pcbY: "7.55015mm", width: "1.3999972mm", height: "2.499995mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin9"], pcbX: "6.27436515mm", pcbY: "7.548626mm", width: "1.3999972mm", height: "2.499995mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin22"], pcbX: "7.57535315mm", pcbY: "4.996688mm", width: "1.6999966mm", height: "1.3999972mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin21"], pcbX: "7.57459115mm", pcbY: "2.996692mm", width: "1.6999966mm", height: "1.3999972mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin20"], pcbX: "7.57459115mm", pcbY: "0.997458mm", width: "1.6999966mm", height: "1.3999972mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin19"], pcbX: "7.57459115mm", pcbY: "-1.0033mm", width: "1.6999966mm", height: "1.3999972mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin18"], pcbX: "7.57408315mm", pcbY: "-3.002026mm", width: "1.6999966mm", height: "1.3999972mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin17"], pcbX: "7.57560715mm", pcbY: "-4.99999mm", width: "1.6999966mm", height: "1.3999972mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin8"], pcbX: "6.27436515mm", pcbY: "-7.550658mm", width: "1.3999972mm", height: "2.499995mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin7"], pcbX: "4.27436915mm", pcbY: "-7.55142mm", width: "1.3999972mm", height: "2.499995mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin6"], pcbX: "2.27437315mm", pcbY: "-7.55142mm", width: "1.3999972mm", height: "2.499995mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin5"], pcbX: "0.27437715mm", pcbY: "-7.55142mm", width: "1.3999972mm", height: "2.499995mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin4"], pcbX: "-1.72561885mm", pcbY: "-7.55142mm", width: "1.3999972mm", height: "2.499995mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin3"], pcbX: "-3.72561485mm", pcbY: "-7.55142mm", width: "1.3999972mm", height: "2.499995mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin2"], pcbX: "-5.72561085mm", pcbY: "-7.55142mm", width: "1.3999972mm", height: "2.499995mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin1"], pcbX: "-7.72560685mm", pcbY: "-7.55142mm", width: "1.3999972mm", height: "2.499995mm", shape: "rect" }), jsx("silkscreenpath", { route: [{ "x": -6.656749450000007, "y": -8.00100000000009 }, { "x": -6.794468249999909, "y": -8.00100000000009 }] }), jsx("silkscreenpath", { route: [{ "x": -4.6567534499999965, "y": -8.00100000000009 }, { "x": -4.794472249999899, "y": -8.00100000000009 }] }), jsx("silkscreenpath", { route: [{ "x": -2.6567574499999864, "y": -8.00100000000009 }, { "x": -2.7944762499998888, "y": -8.00100000000009 }] }), jsx("silkscreenpath", { route: [{ "x": -0.6567614499998626, "y": -8.00100000000009 }, { "x": -0.7944802499998787, "y": -8.00100000000009 }] }), jsx("silkscreenpath", { route: [{ "x": 1.3432345500000338, "y": -8.00100000000009 }, { "x": 1.2055157500000178, "y": -8.00100000000009 }] }), jsx("silkscreenpath", { route: [{ "x": 3.343230550000044, "y": -8.00100000000009 }, { "x": 3.205511750000028, "y": -8.00100000000009 }] }), jsx("silkscreenpath", { route: [{ "x": 5.343226550000054, "y": -8.00100000000009 }, { "x": 5.205507750000152, "y": -8.00100000000009 }] }), jsx("silkscreenpath", { route: [{ "x": 7.771949149999955, "y": -5.9311285999999654 }, { "x": 7.771949149999955, "y": -8.00100000000009 }, { "x": 7.205503749999934, "y": -8.00100000000009 }] }), jsx("silkscreenpath", { route: [{ "x": 7.771949149999955, "y": -3.933164599999941 }, { "x": 7.771949149999955, "y": -4.068851399999971 }] }), jsx("silkscreenpath", { route: [{ "x": 7.771949149999955, "y": -1.9344385999999076 }, { "x": 7.771949149999955, "y": -2.0708874000000606 }] }), jsx("silkscreenpath", { route: [{ "x": 7.771949149999955, "y": 0.06631939999999759 }, { "x": 7.771949149999955, "y": -0.07216140000002724 }] }), jsx("silkscreenpath", { route: [{ "x": 7.771949149999955, "y": 2.0655534000001126 }, { "x": 7.771949149999955, "y": 1.928596599999878 }] }), jsx("silkscreenpath", { route: [{ "x": 7.771949149999955, "y": 4.065549400000009 }, { "x": 7.771949149999955, "y": 3.927830599999993 }] }), jsx("silkscreenpath", { route: [{ "x": 7.205503749999934, "y": 7.998460000000023 }, { "x": 7.771949149999955, "y": 7.998460000000023 }, { "x": 7.771949149999955, "y": 5.927826600000003 }] }), jsx("silkscreenpath", { route: [{ "x": 5.205507750000152, "y": 7.998460000000023 }, { "x": 5.343226550000054, "y": 7.998460000000023 }] }), jsx("silkscreenpath", { route: [{ "x": 3.205511750000028, "y": 7.998460000000023 }, { "x": 3.343230550000044, "y": 7.998460000000023 }] }), jsx("silkscreenpath", { route: [{ "x": 1.2055157500000178, "y": 7.998460000000023 }, { "x": 1.3432345500000338, "y": 7.998460000000023 }] }), jsx("silkscreenpath", { route: [{ "x": -0.7944802499998787, "y": 7.998460000000023 }, { "x": -0.6567614499998626, "y": 7.998460000000023 }] }), jsx("silkscreenpath", { route: [{ "x": -2.7944762499998888, "y": 7.998460000000023 }, { "x": -2.6567574499999864, "y": 7.998460000000023 }] }), jsx("silkscreenpath", { route: [{ "x": -4.794472249999899, "y": 7.998460000000023 }, { "x": -4.6567534499999965, "y": 7.998460000000023 }] }), jsx("silkscreenpath", { route: [{ "x": -6.794468249999909, "y": 7.998460000000023 }, { "x": -6.656749450000007, "y": 7.998460000000023 }] }), jsx("silkscreenpath", { route: [{ "x": -8.656745450000017, "y": -8.00100000000009 }, { "x": -16.225818449999906, "y": -8.00100000000009 }] }), jsx("silkscreenpath", { route: [{ "x": -16.225818449999906, "y": 7.998460000000023 }, { "x": -8.656745450000017, "y": 7.998460000000023 }] }), jsx("silkscreenpath", { route: [{ "x": -10.225830449999876, "y": 4.998465999999894 }, { "x": -10.225830449999876, "y": -5.001513999999929 }, { "x": -15.225820450000015, "y": -5.001513999999929 }, { "x": -15.225820450000015, "y": -4.001516000000038 }, { "x": -12.225826449999886, "y": -4.001516000000038 }, { "x": -12.225826449999886, "y": -3.001517999999919 }, { "x": -15.225820450000015, "y": -3.001517999999919 }, { "x": -15.225820450000015, "y": -2.001519999999914 }, { "x": -12.225826449999886, "y": -2.001519999999914 }, { "x": -12.225826449999886, "y": -1.0015220000000227 }, { "x": -15.225820450000015, "y": -1.0015220000000227 }, { "x": -15.225820450000015, "y": -0.0015239999999039355 }, { "x": -12.225826449999886, "y": -0.0015239999999039355 }, { "x": -12.225826449999886, "y": 0.9984739999999874 }, { "x": -15.225820450000015, "y": 0.9984739999999874 }, { "x": -15.225820450000015, "y": 6.998462000000131 }] }), jsx("silkscreenpath", { route: [{ "x": -7.225836449999861, "y": -6.001512000000048 }, { "x": 5.774137549999978, "y": -6.001512000000048 }, { "x": 5.774137549999978, "y": 5.998464000000013 }, { "x": -7.225836449999861, "y": 5.998464000000013 }, { "x": -7.225836449999861, "y": -6.001512000000048 }] }), jsx("silkscreenpath", { route: [{ "x": -9.22583244999987, "y": -7.001509999999939 }, { "x": -9.22583244999987, "y": 6.998462000000131 }] }), jsx("silkscreenpath", { route: [{ "x": -16.225818449999906, "y": -8.001507999999944 }, { "x": -16.225818449999906, "y": 7.998460000000023 }] }), jsx("silkscreenpath", { route: [{ "x": -8.935154850000004, "y": -8.636000000000081 }, { "x": -8.944830961257026, "y": -8.709497361875833 }, { "x": -8.973199884036376, "y": -8.777986000000055 }, { "x": -9.018328323132891, "y": -8.836798526867142 }, { "x": -9.077140849999864, "y": -8.881926965963544 }, { "x": -9.145629488124086, "y": -8.910295888742894 }, { "x": -9.219126850000066, "y": -8.919971999999916 }, { "x": -9.292624211875818, "y": -8.910295888742894 }, { "x": -9.36111285000004, "y": -8.881926965963544 }, { "x": -9.419925376867013, "y": -8.836798526867142 }, { "x": -9.465053815963415, "y": -8.777986000000055 }, { "x": -9.49342273874288, "y": -8.709497361875833 }, { "x": -9.503098850000015, "y": -8.636000000000081 }, { "x": -9.49342273874288, "y": -8.562502638124101 }, { "x": -9.465053815963415, "y": -8.494013999999993 }, { "x": -9.419925376867013, "y": -8.43520147313302 }, { "x": -9.36111285000004, "y": -8.390073034036504 }, { "x": -9.292624211875818, "y": -8.361704111257154 }, { "x": -9.219126850000066, "y": -8.352028000000132 }, { "x": -9.145629488124086, "y": -8.361704111257154 }, { "x": -9.077140849999864, "y": -8.390073034036504 }, { "x": -9.018328323132891, "y": -8.43520147313302 }, { "x": -8.973199884036376, "y": -8.494013999999993 }, { "x": -8.944830961257026, "y": -8.562502638124101 }, { "x": -8.935154850000004, "y": -8.636000000000081 }] }), jsx("courtyardoutline", { outline: [{ "x": -16.517880849999983, "y": 9.046019999999999 }, { "x": 8.670919150000145, "y": 9.046019999999999 }, { "x": 8.670919150000145, "y": -9.183180000000107 }, { "x": -16.517880849999983, "y": -9.183180000000107 }, { "x": -16.517880849999983, "y": 9.046019999999999 }] })] }), cadModel: {
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C82891.obj?uuid=61ec718de98e4554bc672da5773a804d",
stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C82891.step?uuid=61ec718de98e4554bc672da5773a804d",
pcbRotationOffset: 90,
modelOriginPosition: { x: 2.080594300000044, y: -4.95226774999995, z: 22.455 },
}, ...props }));
};
const pinLabels$3 = {
pin1: ["pin1"],
pin2: ["pin2"],
pin3: ["pin3"],
pin4: ["pin4"]
};
const HX_3x4x2_5_PA_4N_push_button_switch = (props) => {
return (jsx("pushbutton", { pinLabels: pinLabels$3, symbol: jsxs("symbol", { children: [jsx("schematicpath", { points: [{ "x": -2.54, "y": 2.54 }, { "x": 2.54, "y": 2.54 }], strokeWidth: 0.254, strokeColor: "#880000" }), jsx("schematicpath", { points: [{ "x": 2.54, "y": -2.54 }, { "x": -2.54, "y": -2.54 }], strokeWidth: 0.254, strokeColor: "#880000" }), jsx("schematicpath", { points: [{ "x": 0, "y": 2.54 }, { "x": 0, "y": 1.524 }], strokeWidth: 0.254, strokeColor: "#880000" }), jsx("schematicpath", { points: [{ "x": 0, "y": -2.54 }, { "x": 0, "y": -0.762 }], strokeWidth: 0.254, strokeColor: "#880000" }), jsx("schematicpath", { points: [{ "x": 0, "y": 1.524 }, { "x": 0, "y": 0.762 }], strokeWidth: 0.254, strokeColor: "#880000" }), jsx("schematicpath", { points: [{ "x": 1.524, "y": 1.016 }, { "x": 0.254, "y": -0.762 }], strokeWidth: 0.254, strokeColor: "#880000" }), jsx("port", { name: "pin1", pinNumber: 1, aliases: ["1"], direction: "left", schX: -5.08, schY: 2.54, schStemLength: 2.54 }), jsx("port", { name: "pin3", pinNumber: 3, aliases: ["3"], direction: "left", schX: -5.08, schY: -2.54, schStemLength: 2.54 }), jsx("port", { name: "pin2", pinNumber: 2, aliases: ["2"], direction: "right", schX: 5.08, schY: 2.54, schStemLength: 2.54 }), jsx("port", { name: "pin4", pinNumber: 4, aliases: ["4"], direction: "right", schX: 5.08, schY: -2.54, schStemLength: 2.54 }), jsx("schematiccircle", { center: { x: 0, y: -0.762 }, radius: 0.254, strokeWidth: 0.254, color: "#880000" }), jsx("schematiccircle", { center: { x: 0, y: 0.762 }, radius: 0.254, strokeWidth: 0.254, color: "#880000" })] }), supplierPartNumbers: {
"jlcpcb": [
"C55200589"
]
}, manufacturerPartNumber: "HX_3x4x2_5_PA_4N_push_button_switch", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin1"], pcbX: "-2.149983mm", pcbY: "1.075055mm", width: "1.1999976mm", height: "0.6500114mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin2"], pcbX: "2.149983mm", pcbY: "1.075055mm", width: "1.1999976mm", height: "0.6500114mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin3"], pcbX: "-2.149983mm", pcbY: "-1.075055mm", width: "1.1999976mm", height: "0.6500114mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin4"], pcbX: "2.149983mm", pcbY: "-1.075055mm", width: "1.1999976mm", height: "0.6500114mm", shape: "rect" }), jsx("silkscreenpath", { route: [{ "x": -2.0999449999999342, "y": 1.7000728000000436 }, { "x": 2.1000466000000415, "y": 1.700047399999903 }] }), jsx("silkscreenpath", { route: [{ "x": -2.0999449999999342, "y": -1.6999711999999363 }, { "x": 2.1000466000000415, "y": -1.6999457999999095 }] }), jsx("silkscreenpath", { route: [{ "x": -2.0999449999999342, "y": 1.7000728000000436 }, { "x": -2.0999449999999342, "y": 1.6311880000000656 }] }), jsx("silkscreenpath", { route: [{ "x": -2.0999449999999342, "y": 0.518921999999975 }, { "x": -2.0999449999999342, "y": -0.5188203999999814 }] }), jsx("silkscreenpath", { route: [{ "x": -2.0999449999999342, "y": -1.631086400000072 }, { "x": -2.0999449999999342, "y": -1.6999711999999363 }] }), jsx("silkscreenpath", { route: [{ "x": 2.1000466000000415, "y": 1.700047399999903 }, { "x": 2.1000466000000415, "y": 1.6311880000000656 }] }), jsx("silkscreenpath", { route: [{ "x": 2.1000466000000415, "y": 0.518921999999975 }, { "x": 2.1000466000000415, "y": -0.5188203999999814 }] }), jsx("silkscreenpath", { route: [{ "x": 2.1000466000000415, "y": -1.631086400000072 }, { "x": 2.1000466000000415, "y": -1.6999457999999095 }] }), jsx("silkscreenpath", { route: [{ "x": -0.7619492000000037, "y": 0.6350507999999309 }, { "x": 0.7620507999999973, "y": 0.6350507999999309 }] }), jsx("silkscreenpath", { route: [{ "x": -0.7619237999999768, "y": -0.6349238000000241 }, { "x": 0.7620762000000241, "y": -0.6349238000000241 }] }), jsx("silkscreenpath", { route: [{ "x": -0.7619237999999768, "y": -0.6349238000000241 }, { "x": -0.7631430000000137, "y": 0.6356349999999793 }] }), jsx("silkscreenpath", { route: [{ "x": 0.7620507999999973, "y": 0.6350507999999309 }, { "x": 1.0036792573420144, "y": 0.5853746715562238 }, { "x": 1.2081207488878363, "y": 0.4473322662264536 }, { "x": 1.3444951590004166, "y": 0.24177436829700127 }, { "x": 1.392203647774977, "y": -25027762467288994e-20 }, { "x": 1.344040028057293, "y": -0.2421847622900941 }, { "x": 1.2072792328128799, "y": -0.4474857949684292 }, { "x": 1.0025784639619815, "y": -0.5851434295788067 }, { "x": 0.7608569999999872, "y": -0.6343650000000025 }] }), jsx("courtyardoutline", { outline: [{ "x": -3.0095830000000205, "y": 1.9854550000000017 }, { "x": 3.0022169999999733, "y": 1.9854550000000017 }, { "x": 3.0022169999999733, "y": -1.9435449999999719 }, { "x": -3.0095830000000205, "y": -1.9435449999999719 }, { "x": -3.0095830000000205, "y": 1.9854550000000017 }] })] }), cadModel: {
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C55200589.obj?uuid=859fa7849d62453abedc7c971d7b8777",
stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C55200589.step?uuid=859fa7849d62453abedc7c971d7b8777",
pcbRotationOffset: 0,
modelOriginPosition: { x: -5080000005364127e-20, y: -5079999993995443e-20, z: -1.7 },
}, ...props }));
};
const pinLabels$2 = {
pin1: ["B", "BLUE_CATHODE"],
pin2: ["A", "COMMON_ANODE"],
pin3: ["G", "GREEN_CATHODE"],
pin4: ["R", "RED_CATHODE"],
};
const S4_3528RGBTA_A = (props) => {
return (jsx("chip", { pinLabels: pinLabels$2, supplierPartNumbers: {
"jlcpcb": [
"C2827321"
]
}, manufacturerPartNumber: "S4_3528RGBTA_A", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin3"], pcbX: "1.500124mm", pcbY: "0.750062mm", width: "1.2999974mm", height: "0.8999982mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin1"], pcbX: "-1.49987mm", pcbY: "0.750062mm", width: "1.2999974mm", height: "0.8999982mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin2"], pcbX: "-1.500124mm", pcbY: "-0.750062mm", width: "1.2999974mm", height: "0.8999982mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin4"], pcbX: "1.500124mm", pcbY: "-0.750062mm", width: "1.2999974mm", height: "0.8999982mm", shape: "rect" }), jsx("silkscreenpath", { route: [{ "x": 2.158999999999992, "y": -1.3970253999998477 }, { "x": 2.1592540000000326, "y": -2.0314919999998438 }, { "x": 1.524253999999928, "y": -2.0314919999998438 }, { "x": 2.1592540000000326, "y": -1.3964919999998529 }] }), jsx("silkscreenpath", { route: [{ "x": 1.6000221999998985, "y": -1.330172599999969 }, { "x": 1.6000221999998985, "y": -1.3999971999999161 }, { "x": -1.6000222000000122, "y": -1.3999971999999161 }, { "x": -1.6000222000000122, "y": -1.330172599999969 }] }), jsx("silkscreenpath", { route: [{ "x": -1.6000222000000122, "y": 1.330121800000029 }, { "x": -1.6000222000000122, "y": 1.3999464000000899 }] }), jsx("silkscreenpath", { route: [{ "x": -1.6000222000000122, "y": -0.1698751999998649 }, { "x": -1.6000222000000122, "y": 0.16982440000003862 }] }), jsx("silkscreenpath", { route: [{ "x": 1.6000221999998985, "y": 0.16982440000003862 }, { "x": 1.6000221999998985, "y": -0.1698751999998649 }] }), jsx("silkscreenpath", { route: [{ "x": -1.6000222000000122, "y": 1.3999464000000899 }, { "x": 1.6000221999998985, "y": 1.3999464000000899 }, { "x": 1.6000221999998985, "y": 1.330121800000029 }] }), jsx("silkscreenpath", { route: [{ "x": 0.7089139999999361, "y": 0 }, { "x": 0.6854420735875237, "y": -0.1782869815807544 }, { "x": 0.6166258673461016, "y": -0.3444240000001173 }, { "x": 0.5071550920067693, "y": -0.4870890920068405 }, { "x": 0.36449000000004617, "y": -0.5965598673461727 }, { "x": 0.19835298158068326, "y": -0.6653760735875949 }, { "x": 0.02006600000004255, "y": -0.6888480000000072 }, { "x": -0.15822098158071185, "y": -0.6653760735875949 }, { "x": -0.32435800000007475, "y": -0.5965598673461727 }, { "x": -0.4670230920069116, "y": -0.4870890920068405 }, { "x": -0.5764938673461302, "y": -0.3444240000001173 }, { "x": -0.6453100735875523, "y": -0.1782869815807544 }, { "x": -0.6687820000000784, "y": 0 }, { "x": -0.6453100735875523, "y": 0.1782869815808681 }, { "x": -0.5764938673461302, "y": 0.3444240000001173 }, { "x": -0.4670230920069116, "y": 0.4870890920068405 }, { "x": -0.32435800000007475, "y": 0.596559867346059 }, { "x": -0.15822098158071185, "y": 0.6653760735874812 }, { "x": 0.02006600000004255, "y": 0.6888480000000072 }, { "x": 0.19835298158068326, "y": 0.6653760735874812 }, { "x": 0.36449000000004617, "y": 0.596559867346059 }, { "x": 0.5071550920067693, "y": 0.4870890920068405 }, { "x": 0.6166258673461016, "y": 0.3444240000001173 }, { "x": 0.6854420735875237, "y": 0.1782869815808681 }, { "x": 0.7089139999999361, "y": 0 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "0.010414mm", pcbY: "2.420368mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -2.398586000000023, "y": 1.6703680000000531 }, { "x": 2.4194139999999607, "y": 1.6703680000000531 }, { "x": 2.4194139999999607, "y": -2.2840320000000247 }, { "x": -2.398586000000023, "y": -2.2840320000000247 }, { "x": -2.398586000000023, "y": 1.6703680000000531 }] })] }), cadModel: {
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C2827321.obj?uuid=411dcfee076c429db3e8beff97994e17",
stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C2827321.step?uuid=411dcfee076c429db3e8beff97994e17",
pcbRotationOffset: 0,
modelOriginPosition: { x: -12699999956566899e-21, y: 0.000025399999913133797, z: -1 },
}, ...props }));
};
const pinLabels$1 = {
pin1: ["SHELL1", "EH2"],
pin2: ["SHELL2", "EH1"],
pin3: ["SHELL3", "EH4"],
pin4: ["SHELL4", "EH3"],
pin5: ["SBU2", "B8"],
pin6: ["CC1", "A5"],
pin7: ["DM2", "B7"],
pin8: ["DP1", "A6"],
pin9: ["DM1", "A7"],
pin10: ["DP2", "B6"],
pin11: ["SBU1", "A8"],
pin12: ["CC2", "B5"],
pin13: ["GND1", "A1B12"],
pin14: ["GND2", "B1A12"],
pin15: ["VBUS2", "B4A9"],
pin16: ["VBUS1", "A4B9"]
};
const TYPE_C_31_M_12 = (props) => {
return (jsx("chip", { pinLabels: pinLabels$1, supplierPartNumbers: {
"jlcpcb": [
"C165948"
]
}, manufacturerPartNumber: "TYPE_C_31_M_12", footprint: jsxs("footprint", { children: [jsx("hole", { pcbX: "-2.899918mm", pcbY: "0.9055672mm", diameter: "0.5999988mm" }), jsx("hole", { pcbX: "2.899918mm", pcbY: "0.9055672mm", diameter: "0.5999988mm" }), jsx("platedhole", { portHints: ["pin2"], pcbX: "4.325112mm", pcbY: "-2.7741308mm", holeWidth: "0.7999984mm", holeHeight: "1.3999972mm", outerWidth: "1.1999976mm", outerHeight: "1.7999964mm", shape: "pill" }), jsx("platedhole", { portHints: ["pin1"], pcbX: "4.325112mm", pcbY: "1.4056932mm", holeWidth: "0.7999984mm", holeHeight: "1.5999968mm", outerWidth: "1.1999976mm", outerHeight: "1.999996mm", shape: "pill" }), jsx("platedhole", { portHints: ["pin4"], pcbX: "-4.325112mm", pcbY: "1.4056932mm", holeWidth: "0.7999984mm", holeHeight: "1.5999968mm", outerWidth: "1.1999976mm", outerHeight: "1.999996mm", shape: "pill" }), jsx("platedhole", { portHints: ["pin3"], pcbX: "-4.325112mm", pcbY: "-2.7741308mm", holeWidth: "0.7999984mm", holeHeight: "1.3999972mm", outerWidth: "1.1999976mm", outerHeight: "1.7999964mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin5"], pcbX: "-1.75006mm", pcbY: "2.1740432mm", width: "0.2999994mm", height: "1.2999974mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin6"], pcbX: "-1.249934mm", pcbY: "2.1740432mm", width: "0.2999994mm", height: "1.2999974mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin7"], pcbX: "-0.750062mm", pcbY: "2.1740432mm", width: "0.2999994mm", height: "1.2999974mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin8"], pcbX: "-0.249936mm", pcbY: "2.1740432mm", width: "0.2999994mm", height: "1.2999974mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin9"], pcbX: "0.249936mm", pcbY: "2.1740432mm", width: "0.2999994mm", height: "1.2999974mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin10"], pcbX: "0.750062mm", pcbY: "2.1740432mm", width: "0.2999994mm", height: "1.2999974mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin11"], pcbX: "1.24968mm", pcbY: "2.1740432mm", width: "0.2999994mm", height: "1.2999974mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin12"], pcbX: "1.75006mm", pcbY: "2.1740432mm", width: "0.2999994mm", height: "1.2999974mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin13"], points: [{ x: "-2.8999688mm", y: "1.524108mm" }, { x: "-2.8999688mm", y: "2.8241308mm" }, { x: "-2.8999688mm", y: "2.8241308mm" }, { x: "-3.1999682mm", y: "2.8241308mm" }, { x: "-3.1999682mm", y: "2.8241308mm" }, { x: "-3.1999682mm", y: "2.8239784mm" }, { x: "-3.1999682mm", y: "2.8239784mm" }, { x: "-3.4999422mm", y: "2.8239784mm" }, { x: "-3.4999422mm", y: "2.8239784mm" }, { x: "-3.4999422mm", y: "1.5239556mm" }, { x: "-3.4999422mm", y: "1.5239556mm" }, { x: "-3.1999428mm", y: "1.5239556mm" }, { x: "-3.1999428mm", y: "1.5239556mm" }, { x: "-3.1999428mm", y: "1.524108mm" }, { x: "-3.1999428mm", y: "1.524108mm" }, { x: "-2.8999688mm", y: "1.524108mm" }], shape: "polygon" }), jsx("smtpad", { portHints: ["pin14"], points: [{ x: "2.8999942mm", y: "2.8241308mm" }, { x: "2.8999942mm", y: "1.5241588mm" }, { x: "2.8999942mm", y: "1.5241588mm" }, { x: "3.1999936mm", y: "1.5241588mm" }, { x: "3.1999936mm", y: "1.5241588mm" }, { x: "3.200019mm", y: "1.5241588mm" }, { x: "3.200019mm", y: "1.5241588mm" }, { x: "3.5000184mm", y: "1.5241588mm" }, { x: "3.5000184mm", y: "1.5241588mm" }, { x: "3.5000184mm", y: "2.8241308mm" }, { x: "3.5000184mm", y: "2.8241308mm" }, { x: "3.200019mm", y: "2.8241308mm" }, { x: "3.200019mm", y: "2.8241308mm" }, { x: "3.1999936mm", y: "2.8241308mm" }, { x: "3.1999936mm", y: "2.8241308mm" }, { x: "2.8999942mm", y: "2.8241308mm" }], shape: "polygon" }), jsx("smtpad", { portHints: ["pin15"], points: [{ x: "2.7001724mm", y: "1.5241588mm" }, { x: "2.7001724mm", y: "2.8241308mm" }, { x: "2.7001724mm", y: "2.8241308mm" }, { x: "2.400173mm", y: "2.8241308mm" }, { x: "2.400173mm", y: "2.8241308mm" }, { x: "2.4001476mm", y: "2.8241308mm" }, { x: "2.4001476mm", y: "2.8241308mm" }, { x: "2.1001482mm", y: "2.8241308mm" }, { x: "2.1001482mm", y: "2.8241308mm" }, { x: "2.1001482mm", y: "1.5241588mm" }, { x: "2.1001482mm", y: "1.5241588mm" }, { x: "2.4001476mm", y: "1.5241588mm" }, { x: "2.4001476mm", y: "1.5241588mm" }, { x: "2.400173mm", y: "1.5241588mm" }, { x: "2.400173mm", y: "1.5241588mm" }, { x: "2.7001724mm", y: "1.5241588mm" }], shape: "polygon" }), jsx("smtpad", { portHints: ["pin16"], points: [{ x: "-2.0999704mm", y: "1.5240064mm" }, { x: "-2.0999704mm", y: "2.8239784mm" }, { x: "-2.0999704mm", y: "2.8239784mm" }, { x: "-2.3999952mm", y: "2.8239784mm" }, { x: "-2.3999952mm", y: "2.8239784mm" }, { x: "-2.3999952mm", y: "2.823953mm" }, { x: "-2.3999952mm", y: "2.823953mm" }, { x: "-2.6999438mm", y: "2.823953mm" }, { x: "-2.6999438mm", y: "2.823953mm" }, { x: "-2.6999438mm", y: "1.523981mm" }, { x: "-2.6999438mm", y: "1.523981mm" }, { x: "-2.399919mm", y: "1.523981mm" }, { x: "-2.399919mm", y: "1.523981mm" }, { x: "-2.399919mm", y: "1.5240064mm" }, { x: "-2.399919mm", y: "1.5240064mm" }, { x: "-2.0999704mm", y: "1.5240064mm" }], shape: "polygon" }), jsx("silkscreenpath", { route: [{ "x": -4.4689776000000165, "y": -1.6757585999999947 }, { "x": -4.4689776000000165, "y": 0.18715359999987413 }] }), jsx("silkscreenpath", { route: [{ "x": 4.471009600000116, "y": -5.394140800000059 }, { "x": -4.4689776000000165, "y": -5.394140800000059 }, { "x": -4.4689776000000165, "y": -3.91283820000001 }] }), jsx("silkscreenpath", { route: [{ "x": 4.471009600000116, "y": -1.676114200000029 }, { "x": 4.471009600000116, "y": 0.18750920000002225 }] }), jsx("silkscreenpath", { route: [{ "x": 4.471009600000116, "y": -5.394140800000059 }, { "x": 4.471009600000116, "y": -3.912482600000203 }] }), jsx("courtyardoutline", { outline: [{ "x": -5.174805999999876, "y": 3.0786011999998664 }, { "x": 5.180394000000092, "y": 3.0786011999998664 }, { "x": 5.180394000000092, "y": -5.650998800000025 }, { "x": -5.174805999999876, "y": -5.650998800000025 }, { "x": -5.174805999999876, "y": 3.0786011999998664 }] })] }), cadModel: {
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C165948.obj?uuid=617b05f9bba7410b96c001093d8189e4",
stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C165948.step?uuid=617b05f9bba7410b96c001093d8189e4",
pcbRotationOffset: 180,
modelOriginPosition: { x: 0, y: -2.7500289000000517, z: 0.000010999999999872223 },
}, ...props }));
};
const pinLabels = {
pin1: ["pin1"],
pin2: ["pin2"],
pin3: ["pin3"]
};
const A_2_54_1_3P_ = (props) => {
return (jsx("chip", { pinLabels: pinLabels, supplierPartNumbers: {
"jlcpcb": [
"C49257"
]
}, manufacturerPartNumber: "A_2_54_1_3P_", footprint: jsxs("footprint", { children: [jsx("platedhole", { portHints: ["pin3"], pcbX: "2.54mm", pcbY: "0mm", outerDiameter: "1.5999968mm", holeDiameter: "1.1000232mm", shape: "circle" }), jsx("platedhole", { portHints: ["pin2"], pcbX: "0mm", pcbY: "0mm", outerDiameter: "1.5999968mm", holeDiameter: "1.1000232mm", shape: "circle" }), jsx("platedhole", { portHints: ["pin1"], pcbX: "-2.54mm", pcbY: "0mm", outerDiameter: "1.5999968mm", holeDiameter: "1.1000232mm", shape: "circle" }), jsx("silkscreenpath", { route: [{ "x": -1.9049999999999727, "y": 1.2699999999999818 }, { "x": -3.8100000000000023, "y": 1.2699999999999818 }, { "x": -3.8100000000000023, "y": -1.2700000000000102 }, { "x": 3.8100000000000023, "y": -1.2700000000000102 }, { "x": 3.8100000000000023, "y": 1.2699999999999818 }] }), jsx("silkscreenpath", { route: [{ "x": 3.8100000000000023, "y": 1.2699999999999818 }, { "x": -1.9049999999999727, "y": 1.2699999999999818 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "-0.0127mm", pcbY: "2.27mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -4.085399999999936, "y": 1.5199999999999818 }, { "x": 4.060000000000002, "y": 1.5199999999999818 }, { "x": 4.060000000000002, "y": -1.5200000000000102 }, { "x": -4.085399999999936, "y": -1.5200000000000102 }, { "x": -4.085399999999936, "y": 1.5199999999999818 }] })] }), cadModel: {
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C49257.obj?uuid=c023159e66794c6e8fc0907055f01d55",
stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C49257.step?uuid=c023159e66794c6e8fc0907055f01d55",
pcbRotationOffset: 0,
modelOriginPosition: { x: -2.54, y: 0, z: -5999999999950489e-21 },
}, ...props }));
};
const USB_SECTION = "usb_power_programming";
const POWER_SECTION = "five_volt_and_regulator";
const ESP_SECTION = "esp12f_power_and_boot";
const RGB_SECTION = "rgb_low_side_outputs";
const SENSOR_SECTION = "i2c_sensor_port";
const DEBUG_SECTION = "debug_test_points";
const hiddenPcbText = {
silkscreenTextVisibility: "hidden",
};
function TestPointLabel({ text, pcbX }) {
return (jsx("silkscreentext", { text: text, pcbX: pcbX, pcbY: -17, fontSize: "1mm", layers: ["top"] }));
}
const FIRE_OUTER_ROUTE = [
{ x: -13.5, y: -22.2 },
{ x: -13.959, y: -22.126 },
{ x: -14.356, y: -21.986 },
{ x: -14.688, y: -21.787 },
{ x: -14.95, y: -21.537 },
{ x: -15.137, y: -21.246 },
{ x: -15.244, y: -20.92 },
{ x: -15.266, y: -20.569 },
{ x: -15.2, y: -20.2 },
{ x: -15.103, y: -19.876 },
{ x: -14.97, y: -19.575 },
{ x: -14.812, y: -19.293 },
{ x: -14.638, y: -19.025 },
{ x: -14.459, y: -18.766 },
{ x: -14.286, y: -18.513 },
{ x: -14.129, y: -18.259 },
{ x: -14, y: -18 },
{ x: -13.99, y: -18.323 },
{ x: -13.959, y: -18.619 },
{ x: -13.905, y: -18.886 },
{ x: -13.825, y: -19.125 },
{ x: -13.717, y: -19.336 },
{ x: -13.578, y: -19.519 },
{ x: -13.407, y: -19.673 },
{ x: -13.2, y: -19.8 },
{ x: -12.984, y: -19.674 },
{ x: -12.788, y: -19.522 },
{ x: -12.609, y: -19.346 },
{ x: -12.45, y: -19.15 },
{ x: -12.309, y: -18.935 },
{ x: -12.188, y: -18.703 },
{ x: -12.084, y: -18.457 },
{ x: -12, y: -18.2 },
{ x: -11.757, y: -18.529 },
{ x: -11.553, y: -18.841 },
{ x: -11.392, y: -19.139 },
{ x: -11.275, y: -19.425 },
{ x: -11.205, y: -19.702 },
{ x: -11.184, y: -19.972 },
{ x: -11.215, y: -20.237 },
{ x: -11.3, y: -20.5 },
{ x: -11.37, y: -20.922 },
{ x: -11.503, y: -21.286 },
{ x: -11.697, y: -21.592 },
{ x: -11.95, y: -21.838 },
{ x: -12.259, y: -22.022 },
{ x: -12.622, y: -22.145 },
{ x: -13.036, y: -22.205 },
{ x: -13.5, y: -22.2 },
];
const FIRE_INNER_ROUTE = [
{ x: -13.45, y: -21.75 },
{ x: -13.7, y: -21.55 },
{ x: -13.82, y: -21.26 },
{ x: -13.78, y: -20.94 },
{ x: -13.55, y: -20.6 },
{ x: -13.38, y: -20.28 },
{ x: -13.17, y: -20.52 },
{ x: -12.92, y: -20.65 },
{ x: -12.68, y: -20.6 },
{ x: -12.5, y: -20.38 },
{ x: -12.39, y: -20.08 },
{ x: -12.25, y: -20.4 },
{ x: -12.2, y: -20.78 },
{ x: -12.28, y: -21.16 },
{ x: -12.51, y: -21.47 },
{ x: -12.88, y: -21.68 },
{ x: -13.45, y: -21.75 },
];
function BottomSilkscreenGraphic() {
const alignedFireRoute = (route) => route.map(({ x, y }) => ({ x: x + 15, y: y + 4.1 }));
const tscircuitLogoSvg = `data:image/svg+xml,${encodeURIComponent(`
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 92 101">
<path d="M71 26.852L73.349 27.006L75.659 27.465L77.888 28.222L80 29.264L81.958 30.572L83.728 32.124L85.28 33.894L86.588 35.852L87.63 37.964L88.387 40.193L88.846 42.503L89 44.852L89 82.852L88.846 85.201L88.387 87.511L87.63 89.74L86.588 91.852L85.28 93.81L83.728 95.58L81.958 97.132L80 98.44L77.888 99.482L75.659 100.239L73.349 100.698L71 100.852L29 100.852L26.651 100.698L24.341 100.239L22.112 99.482L20 98.44L18.042 97.132L16.272 95.58L14.72 93.81L13.412 91.852L12.37 89.74L11.613 87.511L11.154 85.201L11 82.852L11 44.852L11.154 42.503L11.613 40.193L12.37 37.964L13.412 35.852L14.72 33.894L16.272 32.124L18.042 30.572L20 29.264L22.112 28.222L24.341 27.465L26.651 27.006L29 26.852Z" fill="#000"/>
<path d="M78.5 37.852C75.8057 37.852 74.1218 40.7687 75.4689 43.102C76.0941 44.1849 77.2496 44.852 78.5 44.852C81.1943 44.852 82.8782 41.9353 81.5311 39.602C80.9059 38.5191 79.7504 37.852 78.5 37.852Z" fill="white"/>
<path d="M61.5753 59.975V71.499C61.5753 72.3016 61.3889 72.8893 61.0163 73.262C60.6149 73.606 59.9556 73.778 59.0383 73.778H56.2433V78.852H60.0273C65.1013 78.852 67.6383 76.3866 67.6383 71.456V59.975H70.4763V55.03H67.6383V49.139H61.5753V55.03H56.2433V59.975H61.5753ZM42.7974 79.239C44.7467 79.239 46.4954 78.895 48.0434 78.207C49.5914 77.4903 50.824 76.53 51.7414 75.326C52.63 74.122 53.1174 72.789 53.2034 71.327H47.1404C47.0257 72.2443 46.5814 73.004 45.8074 73.606C45.0047 74.208 44.0157 74.509 42.8404 74.509C41.6937 74.509 40.805 74.2796 40.1744 73.821C39.515 73.3623 39.1854 72.7746 39.1854 72.058C39.1854 71.284 39.5867 70.7106 40.3894 70.338C41.1634 69.9366 42.4104 69.5066 44.1304 69.048C45.9077 68.618 47.3697 68.1736 48.5164 67.715C49.6344 67.2563 50.609 66.554 51.4404 65.608C52.243 64.662 52.6444 63.3863 52.6444 61.781C52.6444 60.4623 52.2717 59.2583 51.5264 58.169C50.7524 57.0796 49.663 56.2196 48.2584 55.589C46.825 54.9583 45.148 54.643 43.2274 54.643C40.3894 54.643 38.1247 55.3596 36.4334 56.793C34.742 58.1976 33.8104 60.104 33.6384 62.512H39.4004C39.4864 61.566 39.8877 60.8206 40.6044 60.276C41.2924 59.7026 42.224 59.416 43.3994 59.416C44.4887 59.416 45.3344 59.6166 45.9364 60.018C46.5097 60.4193 46.7964 60.9783 46.7964 61.695C46.7964 62.4976 46.395 63.114 45.5924 63.544C44.7897 63.9453 43.5427 64.361 41.8514 64.791C40.1314 65.221 38.7124 65.6653 37.5944 66.124C36.4764 66.5826 35.516 67.2993 34.7134 68.274C33.882 69.22 33.452 70.4813 33.4234 72.058C33.4234 73.434 33.8104 74.6666 34.5844 75.756C35.3297 76.8453 36.419 77.7053 37.8524 78.336C39.257 78.938 40.9054 79.239 42.7974 79.239Z" fill="white"/>
<path d="M21 22.352L16.5 24.352L9.5 5.852L16.5 0.852L21 22.352Z" fill="#000" stroke="#000"/>
<path d="M12.2143 25.4493L11.6876 27.5385L2.3779 22.1466L2.4552 18.1414L12.2143 25.4493Z" fill="#000" stroke="#000"/>
</svg>
`)}`;
return (jsxs(Fragment, { children: [jsx("silkscreengraphic", { imageUrl: tscircuitLogoSvg, pcbX: -8, pcbY: 6, width: "18mm", height: "19.8mm", layer: "bottom" }), jsx("silkscreentext", { text: "tscircuit", pcbX: -8, pcbY: -9.5, fontSize: "4.5mm", layer: "bottom" }), jsx("silkscreentext", { text: "vibed by mohan-bee", pcbX: -12.5, pcbY: -16.5, fontSize: "1.9mm", layer: "bottom" }), jsx("silkscreenpath", { route: alignedFireRoute(FIRE_OUTER_ROUTE), strokeWidth: "0.32mm", layer: "bottom" }), jsx("silkscreenpath", { route: alignedFireRoute(FIRE_INNER_ROUTE), strokeWidth: "0.25mm", layer: "bottom" })] }));
}
function LightControllerBoard() {
return (jsxs("board", { title: "RGB Light Controller", layers: 2, width: "60mm", height: "44mm", borderRadius: "3mm", minViaHoleDiameter: "0.3mm", minViaPadDiameter: "0.45mm", pcbPack: false, schAutoLayoutEnabled: true, children: [jsx("schematicsection", { name: USB_SECTION, displayName: "USB-C Power Input" }), jsx("schematicsection", { name: POWER_SECTION, displayName: "Power Supply" }), jsx("schematicsection", { name: ESP_SECTION, displayName: "ESP8266 Control" }), jsx("schematicsection", { name: RGB_SECTION, displayName: "RGB Outputs" }), jsx("schematicsection", { name: SENSOR_SECTION, displayName: "Sensors and UART" }), jsx("schematicsection", { name: DEBUG_SECTION, displayName: "Debug and Test" }), jsx("hole", { name: "H1", diameter: "3.2mm", pcbX: -26, pcbY: 18 }), jsx("hole", { name: "H2", diameter: "3.2mm", pcbX: 26, pcbY: 18 }), jsx("hole", { name: "H3", diameter: "3.2mm", pcbX: -26, pcbY: -18 }), jsx("hole", { name: "H4", diameter: "3.2mm", pcbX: 26, pcbY: -18 }), jsx("silkscreentext", { text: "ESP8266 RGB CONTROLLER", pcbX: 0, pcbY: -15, fontSize: "1.8mm", layers: ["top"] }), jsx("silkscreentext", { text: "USB-C", pcbX: -22.5, pcbY: 6, fontSize: "1.5mm", layers: ["top"] }), jsx("silkscreentext", { text: "RGB OUTPUT", pcbX: 23, pcbY: 11.5, fontSize: "1.5mm", layers: ["top"] }), jsx("silkscreentext", { text: "RGB TEST", pcbX: 2, pcbY: -3.5, fontSize: "1mm", layers: ["top"] }), jsx("silkscreentext", { text: "GND", pcbX: 3.39, pcbY: 4.4, fontSize: "1mm", layers: ["top"] }), jsx("silkscreentext", { text: "3V3", pcbX: 5.93, pcbY: 4.4, fontSize: "1mm", layers: ["top"] }), jsx("silkscreentext", { text: "SDA", pcbX: 8.47, pcbY: 4.4, fontSize: "1mm", layers: ["top"] }), jsx("silkscreentext", { text: "SCL", pcbX: 11.01, pcbY: 4.4, fontSize: "1mm", layers: ["top"] }), jsx("silkscreentext", { text: "GND", pcbX: 4.66, pcbY: -10.2, fontSize: "1mm", layers: ["top"] }), jsx("silkscreentext", { text: "TX", pcbX: 7.2, pcbY: -10.2, fontSize: "1mm", layers: ["top"] }), jsx("silkscreentext", { text: "RX", pcbX: 9.74, pcbY: -10.2, fontSize: "1mm", layers: ["top"] }), jsx("silkscreentext", { text: "RESET", pcbX: -23, pcbY: -9.5, fontSize: "1.5mm", layers: ["top"] }), jsx("silkscreentext", { text: "BOOT", pcbX: -15, pcbY: -9.5, fontSize: "1.5mm", layers: ["top"] }), jsx("silkscreentext", { text: "+5V", pcbX: 22, pcbY: -7.6, fontSize: "1.4mm", layers: ["top"] }), jsx("silkscreentext", { text: "R", pcbX: 22, pcbY: -2.5, fontSize: "1.4mm", layers: ["top"] }), jsx("silkscreentext", { text: "G", pcbX: 22, pcbY: 2.5, fontSize: "1.4mm", layers: ["top"] }), jsx("silkscreentext", { text: "B", pcbX: 22, pcbY: 7.6, fontSize: "1.4mm", layers: ["top"] }), [
["5V", -10],
["3V3", -6.5],
["GND", -3],
["TX", 0.5],
["RX", 4],
["IO0", 7.5],
["RST", 11],
].map(([text, pcbX]) => (jsx(TestPointLabel, { text: text, pcbX: pcbX }, text))), jsx(BottomSilkscreenGraphic, {}), jsx("keepout", { shape: "rect", pcbX: -8, pcbY: 17.5, width: "12.5mm", height: "5mm", layers: ["top", "bottom"], excludeRefs: [".U_MCU"] }), jsx("copperpour", { name: "GND_PLANE_BOTTOM", layer: "bottom", connectsTo: "net.GND" }), jsx(TYPE_C_31_M_12, { name: "J1", pcbX: -26, pcbY: 0, pcbRotation: 270, shouldBeOnEdgeOfBoard: true, schMarginRight: 1, schSectionName: USB_SECTION }), jsx("resistor", { resistance: "5.1k", footprint: "0603", supplierPartNumbers: { jlcpcb: ["C23186"] }, name: "R_CC1", pcbX: -21, pcbY: -3.5, pcbStyle: hiddenPcbText, schMarginLeft: 2, schSectionName: USB_SECTION }), jsx("resistor", { resistance: "5.1k", footprint: "0603", supplierPartNumbers: { jlcpcb: ["C23186"] }, name: "R_CC2", pcbX: -21, pcbY: 3.5, pcbStyle: hiddenPcbText, schSectionName: USB_SECTION }), jsx("trace", { from: ".J1 > .VBUS1", to: "net.VBUS_5V" }), jsx("trace", { from: ".J1 > .VBUS2", to: "net.VBUS_5V" }), jsx("trace", { from: ".J1 > .GND1", to: "net.GND" }), jsx("trace", { from: ".J1 > .GND2", to: "net.GND" }), jsx("trace", { from: ".J1 > .SHELL1", to: "net.GND" }), jsx("trace", { from: ".J1 > .SHELL2", to: "net.GND" }), jsx("trace", { from: ".J1 > .SHELL3", to: "net.GND" }), jsx("trace", { from: ".J1 > .SHELL4", to: "net.GND" }), jsx("trace", { from: ".J1 > .CC1", to: ".R_CC1 > .pin1" }), jsx("trace", { from: ".R_CC1 > .pin2", to: "net.GND" }), jsx("trace", { from: ".J1 > .CC2", to: ".R_CC2 > .pin1" }), jsx("trace", { from: ".R_CC2 > .pin2", to: "net.GND" }), jsx(BSMD1206_200_12V, { name: "F1", symbol: undefined, pcbX: -19, pcbY: 0, schSectionName: POWER_SECTION }), jsx(ME6211C33M5G_N, { name: "U_REG", pcbX: -13, pcbY: 0, schHeight: 0.6, schSectionName: POWER_SECTION }), jsx("capacitor", { capacitance: "10uF", footprint: "0805", supplierPartNumbers: { jlcpcb: ["C5137471"] }, name: "C_REG_IN_BULK", pcbX: -17, pcbY: 2.3, schSectionName: POWER_SECTION }), jsx("capacitor", { capacitance: "100nF", footprint: "0603", supplierPartNumbers: { jlcpcb: ["C14663"] }, name: "C_REG_IN_HF", pcbX: -17, pcbY: -2.7, pcbStyle: hiddenPcbText, schSectionName: POWER_SECTION }), jsx("capacitor", { capacitance: "10uF", footprint: "0805", supplierPartNumbers: { jlcpcb: ["C5137471"] }, name: "C_REG_OUT_BULK", pcbX: -9, pcbY: 2.3, schSectionName: POWER_SECTION }), jsx("capacitor", { capacitance: "100nF", footprint: "0603", supplierPartNumbers: { jlcpcb: ["C14663"] }, name: "C_REG_OUT_HF", pcbX: -9, pcbY: -2.7, pcbStyle: hiddenPcbText, schSectionName: POWER_SECTION }), jsx("trace", { from: "net.VBUS_5V", to: ".F1 > .pin1" }), jsx("trace", { from: ".F1 > .pin2", to: "net.V5_SYS" }), jsx("trace", { from: ".U_REG > .VIN", to: "net.V5_SYS" }), jsx("trace", { from: ".U_REG > .EN", to: ".U_REG > .VIN" }), jsx("trace", { from: ".U_REG > .GND", to: "net.GND" }), jsx("trace", { from: ".U_REG > .VOUT", to: "net.V3_3" }), jsx("trace", { from: ".C_REG_IN_BULK > .pin1", to: "net.V5_SYS" }), jsx("trace", { from: ".C_REG_IN_BULK > .pin2", to: "net.GND" }), jsx("trace", { from: ".C_REG_IN_HF > .pin1", to: "net.V5_SYS" }), jsx("trace", { from: ".C_REG_IN_HF > .pin2", to: "net.GND" }), jsx("trace", { from: ".C_REG_OUT_BULK > .pin1", to: "net.V3_3" }), jsx("trace", { from: ".C_REG_OUT_BULK > .pin2", to: "net.GND" }), jsx("trace", { from: ".C_REG_OUT_HF > .pin1", to: "net.V3_3" }), jsx("trace", { from: ".C_REG_OUT_HF > .pin2", to: "net.GND" }), jsx(ESP_12F_ESP8266MOD_, { name: "U_MCU", pcbX: -8, pcbY: 12, pcbRotation: 270, schSectionName: ESP_SECTION }), jsx("capacitor", { capacitance: "10uF", footprint: "0805", supplierPartNumbers: { jlcpcb: ["C5137471"] }, name: "C_ESP_BULK", pcbX: -4.5, pcbY: 1.5, schSectionName: ESP_SECTION }), jsx("capacitor", { capacitance: "100nF", footprint: "0603", supplierPartNumbers: { jlcpcb: ["C14663"] }, name: "C_ESP_HF", pcbX: -0.5, pcbY: 1.5, pcbStyle: hiddenPcbText, schSectionName: ESP_SECTION }), jsx("resistor", { resistance: "10k", footprint: "0603", supplierPartNumbers: { jlcpcb: ["C25804"] }, name: "R_EN_PU", pcbX: -22, pcbY: 10, schSectionName: ESP_SECTION }), jsx("resistor", { resistance: "10k", footprint: "0603", supplierPartNumbers: { jlcpcb: ["C25804"] }, name: "R_RST_PU", pcbX: -22, pcbY: 7, schSectionName: ESP_SECTION }), jsx("resistor", { resistance: "10k", footprint: "0603", supplierPartNumbers: { jlcpcb: ["C25804"] }, name: "R_GPIO0_PU", pcbX: -18.8, pcbY: 7, schSectionName: ESP_SECTION }), jsx("resistor", { resistance: "10k", footprint: "0603", supplierPartNumbers: { jlcpcb: ["C25804"] }, name: "R_GPIO2_PU", pcbX: -7, pcbY: -5, schSectionName: ESP_SECTION }), jsx("resistor", { resistance: "10k", footprint: "0603", supplierPartNumbers: { jlcpcb: ["C25804"] }, name: "R_GPIO15_PD", pcbX: -18, pcbY: -5, schSectionName: ESP_SECTION }), jsx(HX_3x4x2_5_PA_4N_push_button_switch, { name: "SW_RESET", symbol: undefined, pcbX: -23, pcbY: -13, schSectionName: ESP_SECTION }), jsx(HX_3x4x2_5_PA_4N_push_button_switch, { name: "SW_BOOT", symbol: undefined, pcbX: -15, pcbY: -13, schSectionName: ESP_SECTION }), jsx("trace", { from: ".U_MCU > .VCC", to: "net.V3_3" }), jsx("trace", { from: ".U_MCU > .GND", to: "net.GND" }), jsx("trace", { from: ".C_ESP_BULK > .pin1", to: "net.V3_3" }), jsx("trace", { from: ".C_ESP_BULK > .pin2", to: "net.GND" }), jsx("trace", { from: ".C_ESP_HF > .pin1", to: "net.V3_3" }), jsx("trace", { from: ".C_ESP_HF > .pin2", to: "net.GND" }), jsx("trace", { from: ".U_MCU > .EN", to: "net.ESP_EN" }), jsx("trace", { from: ".R_EN_PU > .pin1", to: "net.V3_3" }), jsx("trace", { from: ".R_EN_PU > .pin2", to: "net.ESP_EN" }), jsx("trace", { from: ".U_MCU > .RST", to: "net.ESP_RST" }), jsx("trace", { from: ".R_RST_PU > .pin1", to: "net.V3_3" }), jsx("trace", { from: ".R_RST_PU > .pin2", to: "net.ESP_RST" }), jsx("trace", { from: ".SW_RESET > .pin1", to: "net.ESP_RST" }), jsx("trace", { from: ".SW_RESET > .pin3", to: "net.GND" }), jsx("trace", { from: ".U_MCU > .GPIO0", to: "net.ESP_GPIO0" }), jsx("trace", { from: ".R_GPIO0_PU > .pin1", to: "net.V3_3" }), jsx("trace", { from: ".R_GPIO0_PU > .pin2", to: "net.ESP_GPIO0" }), jsx("trace", { from: ".SW_BOOT > .pin1", to: "net.ESP_GPIO0" }), jsx("trace", { from: ".SW_BOOT > .pin3", to: "net.GND" }), jsx("trace", { from: ".U_MCU > .GPIO2", to: "net.ESP_GPIO2" }), jsx("trace", { from: ".R_GPIO2_PU > .pin1", to: "net.V3_3" }), jsx("trace", { from: ".R_GPIO2_PU > .pin2", to: "net.ESP_GPIO2" }), jsx("trace", { from: ".U_MCU > .GPIO15", to: "net.ESP_GPIO15" }), jsx("trace", { from: ".R_GPIO15_PD > .pin1", to: "net.ESP_GPIO15" }), jsx("trace", { from: ".R_GPIO15_PD > .pin2", to: "net.GND" }), jsx("trace", { from: ".U_MCU > .RXD0", to: "net.ESP_RX" }), jsx("trace", { from: ".U_MCU > .TXD0", to: "net.ESP_TX" }), jsx("trace", { from: ".U_MCU > .GPIO12", to: "net.RGB_RED_PWM" }), jsx("trace", { from: ".U_MCU > .GPIO13", to: "net.RGB_GREEN_PWM" }), jsx("trace", { from: ".U_MCU > .GPIO14", to: "net.RGB_BLUE_PWM" }), jsx("trace", { from: ".U_MCU > .GPIO4", to: "net.I2C_SDA" }), jsx("trace", { from: ".U_MCU > .GPIO5", to: "net.I2C_SCL" }), jsx("pinheader", { name: "J_SENSOR_1", gender: "unpopulated", doNotPlace: true, pinCount: 4, pcbOrientation: "horizontal", pcbX: 7.2, pcbY: 2, pcbStyle: hiddenPcbText, schSectionName: SENSOR_SECTION }), jsx("pinheader", { name: "J_SENSOR_2", gender: "unpopulated", doNotPlace: true, pinCount: 4, pcbOrientation: "horizontal", pcbX: 7.2, pcbY: -2.5, pcbStyle: hiddenPcbText, schSectionName: SENSOR_SECTION }), jsx("pinheader", { name: "J_SENSOR_3", gender: "unpopulated", doNotPlace: true, pinCount: 4, pcbOrientation: "horizontal", pcbX: 7.2, pcbY: -7, pcbStyle: hiddenPcbText, schSectionName: SENSOR_SECTION }), jsx(A_2_54_1_3P_, { name: "J_UART", doNotPlace: true, symbol: undefined, schHeight: 0.4, pcbX: 7.2, pcbY: -12.5, pcbRotation: 180, pcbStyle: hiddenPcbText, schSectionName: SENSOR_SECTION }), jsx("resistor", { resistance: "4.7k", footprint: "0603", supplierPartNumbers: { jlcpcb: ["C23162"] }, name: "R_SDA_PU", pcbX: 13, pcbY: 8.5, pcbStyle: hiddenPcbText, schSectionName: SENSOR_SECTION }), jsx("resistor", { resistance: "4.7k", footprint: "0603", supplierPartNumbers: { jlcpcb: ["C23162"] }, name: "R_SCL_PU", pcbX: 13, pcbY: -10.5, pcbStyle: hiddenPcbText, schSectionName: SENSOR_SECTION }), jsx("trace", { from: ".J_SENSOR_1 > .pin1", to: "net.GND" }), jsx("trace", { from: ".J_SENSOR_1 > .pin2", to: "net.V3_3" }), jsx("trace", { from: ".J_SENSOR_1 > .pin3", to: "net.I2C_SDA" }), jsx("trace", { from: ".J_SENSOR_1 > .pin4", to: "net.I2C_SCL" }), jsx("trace", { from: ".J_SENSOR_2 > .pin1", to: "net.GND" }), jsx("trace", { from: ".J_SENSOR_2 > .pin2", to: "net.V3_3" }), jsx("trace", { from: ".J_SENSOR_2 > .pin3", to: "net.I2C_SDA" }), jsx("trace", { from: ".J_SENSOR_2 > .pin4", to: "net.I2C_SCL" }), jsx("trace", { from: ".J_SENSOR_3 > .pin1", to: "net.GND" }), jsx("trace", { from: ".J_SENSOR_3 > .pin2", to: "net.V3_3" }), jsx("trace", { from: ".J_SENSOR_3 > .pin3", to: "net.I2C_SDA" }), jsx("trace", { from: ".J_SENSOR_3 > .pin4", to: "net.I2C_SCL" }), jsx("trace", { from: ".J_UART > .pin1", to: "net.ESP_RX" }), jsx("trace", { from: ".J_UART > .pin2", to: "net.ESP_TX" }), jsx("trace", { from: ".J_UART > .pin3", to: "net.GND" }), jsx("trace", { from: ".R_SDA_PU > .pin1", to: "net.V3_3" }), jsx("trace", { from: ".R_SDA_PU > .pin2", to: "net.I2C_SDA" }), jsx("trace", { from: ".R_SCL_PU > .pin1", to: "net.V3_3" }), jsx("trace", { from: ".R_SCL_PU > .pin2", to: "net.I2C_SCL" }), jsx("resistor", { resistance: "100", footprint: "0603", supplierPartNumbers: { jlcpcb: ["C22775"] }, name: "R_RED_GATE", pcbX: 14.5, pcbY: -5, schSectionName: RGB_SECTION }), jsx("resistor", { resistance: "100", footprint: "0603", supplierPartNumbers: { jlcpcb: ["C22775"] }, name: "R_GREEN_GATE", pcbX: 14.5, pcbY: 0, schSectionName: RGB_SECTION }), jsx("resistor", { resistance: "100", footprint: "0603", supplierPartNumbers: { jlcpcb: ["C22775"] }, name: "R_BLUE_GATE", pcbX: 14.5, pcbY: 5, schSectionName: RGB_SECTION }), jsx("resistor", { resistance: "100k", footprint: "0603", supplierPartNumbers: { jlcpcb: ["C25803"] }, name: "R_RED_PD", pcbX: 14.5, pcbY: -7.5, schSectionName: RGB_SECTION }), jsx("resistor", { resistance: "100k", footprint: "0603", supplierPartNumbers: { jlcpcb: ["C25803"] }, name: "R_GREEN_PD", pcbX: 14.5, pcbY: -2.5, schSectionName: RGB_SECTION }), jsx("resistor", { resistance: "100k", footprint: "0603", supplierPartNumbers: { jlcpcb: ["C25803"] }, name: "R_BLUE_PD", pcbX: 14.5, pcbY: 2.5, schSectionName: RGB_SECTION }), jsx(AO3400A, { name: "Q_RED", symbol: undefined, schHeight: 0.4, pcbX: 18.5, pcbY: -5, pcbRotation: 90, schSectionName: RGB_SECTION }), jsx(AO3400A, { name: "Q_GREEN", symbol: undefined, schHeight: 0.4, pcbX: 18.5, pcbY: 0, pcbRotation: 90, schMarginLeft: 2, schSectionName: RGB_SECTION }), jsx(AO3400A, { name: "Q_BLUE", symbol: undefined, schHeight: 0.4, pcbX: 18.5, pcbY: 5, pcbRotation: 90, schSectionName: RGB_SECTION }), jsx(DB128V_5_08_4P_GN_S, { name: "J2", doNotPlace: true, pcbX: 26, pcbY: 0, pcbRotation: 90, schMarginRight: 2, schSectionName: RGB_SECTION }), jsx("capacitor", { name: "C_RGB_BULK", capacitance: "10uF", footprint: "0805", supplierPartNumbers: { jlcpcb: ["C5137471"] }, pcbX: 17.5, pcbY: 15.5, pcbStyle: hiddenPcbText, schSectionName: RGB_SECTION }), jsx("capacitor", { capacitance: "100nF", footprint: "0603", supplierPartNumbers: { jlcpcb: ["C14663"] }, name: "C_RGB_HF", pcbX: 19, pcbY: 10, pcbStyle: hiddenPcbText, schSectionName: RGB_SECTION }), jsx(S4_3528RGBTA_A, { name: "LED_RGB_TEST", symbol: undefined, pcbX: -1, pcbY: -7, pcbStyle: hiddenPcbText, schSectionName: RGB_SECTION }), jsx("resistor", { resistance: "1k", footprint: "0603", supplierPartNumbers: { jlcpcb: ["C21190"] }, name: "R_ONBOARD_RED", pcbX: -5, pcbY: -10.2, pcbStyle: hiddenPcbText, schSectionName: RGB_SECTION }), jsx("resistor", { resistance: "1k", footprint: "0603", supplierPartNumbers: { jlcpcb: ["C21190"] }, name: "R_ONBOARD_GREEN", pcbX: -5, pcbY: -7, pcbStyle: hiddenPcbText, schSectionName: RGB_SECTION }), jsx("resistor", { resistance: "1k", footprint: "0603", supplierPartNumbers: { jlcpcb: ["C21190"] }, name: "R_ONBOARD_BLUE", pcbX: -1, pcbY: -10.2, pcbStyle: hiddenPcbText, schSectionName: RGB_SECTION }), jsx("trace", { from: "net.RGB_RED_PWM", to: ".R_RED_GATE > .pin1" }), jsx("trace", { from: ".R_RED_GATE > .pin2", to: ".Q_RED > .G" }), jsx("trace", { from: ".Q_RED > .G", to: ".R_RED_PD > .pin1" }), jsx("trace", { from: ".R_RED_PD > .pin2", to: "net.GND" }), jsx("trace", { from: ".Q_RED > .S", to: "net.GND" }), jsx("trace", { from: ".Q_RED > .D", to: "net.LED_RED" }), jsx("trace", { from: "net.RGB_GREEN_PWM", to: ".R_GREEN_GATE > .pin1" }), jsx("trace", { from: ".R_GREEN_GATE > .pin2", to: ".Q_GREEN > .G" }), jsx("trace", { from: ".Q_GREEN > .G", to: ".R_GREEN_PD > .pin1" }), jsx("trace", { from: ".R_GREEN_PD > .pin2", to: "net.GND" }), jsx("trace", { from: ".Q_GREEN > .S", to: "net.GND" }), jsx("trace", { from: ".Q_GREEN > .D", to: "net.LED_GREEN" }), jsx("trace", { from: "net.RGB_BLUE_PWM", to: ".R_BLUE_GATE > .pin1" }), jsx("trace", { from: ".R_BLUE_GATE > .pin2", to: ".Q_BLUE > .G" }), jsx("trace", { from: ".Q_BLUE > .G", to: ".R_BLUE_PD > .pin1" }), jsx("trace", { from: ".R_BLUE_PD > .pin2", to: "net.GND" }), jsx("trace", { from: ".Q_BLUE > .S", to: "net.GND" }), jsx("trace", { from: ".Q_BLUE > .D", to: "net.LED_BLUE" }), jsx("trace", { from: ".J2 > .pin1", to: "net.V5_SYS" }), jsx("trace", { from: ".J2 > .pin2", to: "net.LED_RED" }), jsx("trace", { from: ".J2 > .pin3", to: "net.LED_GREEN" }), jsx("trace", { from: ".J2 > .pin4", to: "net.LED_BLUE" }), jsx("trace", { from: ".C_RGB_BULK > .pin1", to: "net.V5_SYS" }), jsx("trace", { from: ".C_RGB_BULK > .pin2", to: "net.GND" }), jsx("trace", { from: ".C_RGB_HF > .pin1", to: "net.V5_SYS" }), jsx("trace", { from: ".C_RGB_HF > .pin2", to: "net.GND" }), jsx("trace", { from: ".LED_RGB_TEST > .A", to: "net.V5_SYS" }), jsx("trace", { from: ".LED_RGB_TEST > .R", to: ".R_ONBOARD_RED > .pin1" }), jsx("trace", { from: ".R_ONBOARD_RED > .pin2", to: "net.LED_RED" }), jsx("trace", { from: ".LED_RGB_TEST > .G", to: ".R_ONBOARD_GREEN > .pin1" }), jsx("trace", { from: ".R_ONBOARD_GREEN > .pin2", to: "net.LED_GREEN" }), jsx("trace", { from: ".LED_RGB_TEST > .B", to: ".R_ONBOARD_BLUE > .pin1" }), jsx("trace", { from: ".R_ONBOARD_BLUE > .pin2", to: "net.LED_BLUE" }), jsx("testpoint", { name: "TP_5V", footprintVariant: "pad", padDiameter: "2mm", pcbX: -10, pcbY: -19.5, pcbStyle: hiddenPcbText, pcbMarginX: 1, schSectionName: DEBUG_SECTION }), jsx("testpoint", { name: "TP_3V3", footprintVariant: "pad", padDiameter: "2mm", pcbX: -6.5, pcbY: -19.5, pcbStyle: hiddenPcbText, pcbMarginX: 1, schSectionName: DEBUG_SECTION }), jsx("testpoint", { name: "TP_GND", footprintVariant: "pad", padDiameter: "2mm", pcbX: -3, pcbY: -19.5, pcbStyle: hiddenPcbText, pcbMarginX: 1, schMarginTop: 1, schSectionName: DEBUG_SECTION }), jsx("testpoint", { name: "TP_TX", footprintVariant: "pad", padDiameter: "2mm", pcbX: 0.5, pcbY: -19.5, pcbStyle: hiddenPcbText, pcbMarginX: 1, schSectionName: DEBUG_SECTION }), jsx("testpoint", { name: "TP_RX", footprintVariant: "pad", padDiameter: "2mm", pcbX: 4, pcbY: -19.5, pcbStyle: hiddenPcbText, pcbMarginX: 1, schSectionName: DEBUG_SECTION }), jsx("testpoint", { name: "TP_GPIO0", footprintVariant: "pad", padDiameter: "2mm", pcbX: 7.5, pcbY: -19.5, pcbStyle: hiddenPcbText, pcbMarginX: 1, schSectionName: DEBUG_SECTION }), jsx("testpoint", { name: "TP_RST", footprintVariant: "pad", padDiameter: "2mm", pcbX: 11, pcbY: -19.5, pcbStyle: hiddenPcbText, pcbMarginX: 1, schSectionName: DEBUG_SECTION }), jsx("trace", { from: ".TP_5V > .pin1", to: "net.V5_SYS" }), jsx("trace", { from: ".TP_3V3 > .pin1", to: "net.V3_3" }), jsx("trace", { from: ".TP_GND > .pin1", to: "net.GND" }), jsx("trace", { from: ".TP_TX > .pin1", to: "net.ESP_TX" }), jsx("trace", { from: ".TP_RX > .pin1", to: "net.ESP_RX" }), jsx("trace", { from: ".TP_GPIO0 > .pin1", to: "net.ESP_GPIO0" }), jsx("trace", { from: ".TP_RST > .pin1", to: "net.ESP_RST" })] }));
}
export { LightControllerBoard as default };