mohan-bee/temperature-meter

The code defines a compact PCB assembly featuring a USB-C power input, an AMS1117 voltage regulator, a LM335 temperature sensor, an ATtiny85 microcontroller with ICSP and I2C headers, a pushbutton, and associated passive components like resistors and capacitors, all interconnected with traces and mounted on labeled footprints.

Version
1.0.3
License
unset
Stars
1

dist/index.js

import { jsx, jsxs } from 'react/jsx-runtime';

const pinLabels$4 = {
    pin1: ["GND"],
    pin2: ["VOUT1", "VOUT"],
    pin3: ["VIN"],
    pin4: ["VOUT2", "VOUT"]
};
const AMS1117_3_3 = (props) => {
    return (jsx("chip", { pinLabels: pinLabels$4, supplierPartNumbers: {
            "jlcpcb": [
                "C6186"
            ]
        }, manufacturerPartNumber: "AMS1117_3_3", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin1"], pcbX: "2.92995985mm", pcbY: "-2.29997mm", width: "2.499995mm", height: "1.0999978mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin2"], pcbX: "2.92995985mm", pcbY: "0mm", width: "2.499995mm", height: "1.0999978mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin3"], pcbX: "2.92995985mm", pcbY: "2.29997mm", width: "2.499995mm", height: "1.0999978mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin4"], pcbX: "-3.00995715mm", pcbY: "0mm", width: "2.3400004mm", height: "3.5999928mm", shape: "rect" }), jsx("silkscreenpath", { route: [{ "x": -1.6114077499998984, "y": -3.3262061999998878 }, { "x": -1.6114077499998984, "y": 3.3262062000000014 }, { "x": 1.3313854499999707, "y": 3.3262062000000014 }, { "x": 1.3313854499999707, "y": -3.3262061999998878 }, { "x": -1.6114077499998984, "y": -3.3262061999998878 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "0.29178885mm", pcbY: "4.3274mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -4.428611149999938, "y": 3.5774000000000115 }, { "x": 5.012188849999916, "y": 3.5774000000000115 }, { "x": 5.012188849999916, "y": -3.5773999999998978 }, { "x": -4.428611149999938, "y": -3.5773999999998978 }, { "x": -4.428611149999938, "y": 3.5774000000000115 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C6186.obj?uuid=e80246a9471445bfb635be848806a22e",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C6186.step?uuid=e80246a9471445bfb635be848806a22e",
            pcbRotationOffset: 180,
            modelOriginPosition: { x: -0.14002385000003414, y: -12700000070253736e-21, z: -0.049394 },
        }, ...props }));
};

const pinLabels$3 = {
    pin1: ["EH2"],
    pin2: ["EH1"],
    pin3: ["EH4"],
    pin4: ["EH3"],
    pin5: ["B8"],
    pin6: ["A5", "CC1"],
    pin7: ["B7"],
    pin8: ["A6"],
    pin9: ["A7"],
    pin10: ["B6"],
    pin11: ["A8"],
    pin12: ["B5", "CC2"],
    pin13: ["A1B12", "GND"],
    pin14: ["B1A12", "GND"],
    pin15: ["B4A9", "VBUS"],
    pin16: ["A4B9", "VBUS"]
};
const TYPE_C_31_M_12 = (props) => {
    return (jsx("chip", { pinLabels: pinLabels$3, supplierPartNumbers: {
            "jlcpcb": [
                "C165948"
            ]
        }, manufacturerPartNumber: "TYPE_C_31_M_12", footprint: jsxs("footprint", { children: [jsx("hole", { pcbX: "-2.899918mm", pcbY: "0.9055672mm", diameter: "0.7500112mm" }), jsx("hole", { pcbX: "2.899918mm", pcbY: "0.9055672mm", diameter: "0.7500112mm" }), 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("silkscreentext", { text: "{NAME}", pcbX: "0.002794mm", pcbY: "3.8286012mm", anchorAlignment: "center", fontSize: "1mm" }), 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$2 = {
    pin1: ["NC5"],
    pin2: ["NC4"],
    pin3: ["NC3"],
    pin4: ["V_NEG"],
    pin5: ["ADJ"],
    pin6: ["NC1"],
    pin7: ["NC2"],
    pin8: ["V_POS"]
};
const LM335DT = (props) => {
    return (jsx("chip", { pinLabels: pinLabels$2, supplierPartNumbers: {
            "jlcpcb": [
                "C7946"
            ]
        }, manufacturerPartNumber: "LM335DT", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin5"], pcbX: "1.905mm", pcbY: "2.599944mm", width: "0.58801mm", height: "1.7999964mm", radius: "0.294005mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin6"], pcbX: "0.635mm", pcbY: "2.599944mm", width: "0.58801mm", height: "1.7999964mm", radius: "0.294005mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin7"], pcbX: "-0.635mm", pcbY: "2.599944mm", width: "0.58801mm", height: "1.7999964mm", radius: "0.294005mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin8"], pcbX: "-1.905mm", pcbY: "2.599944mm", width: "0.58801mm", height: "1.7999964mm", radius: "0.294005mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin4"], pcbX: "1.905mm", pcbY: "-2.599944mm", width: "0.58801mm", height: "1.7999964mm", radius: "0.294005mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin3"], pcbX: "0.635mm", pcbY: "-2.599944mm", width: "0.58801mm", height: "1.7999964mm", radius: "0.294005mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin2"], pcbX: "-0.635mm", pcbY: "-2.599944mm", width: "0.58801mm", height: "1.7999964mm", radius: "0.294005mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin1"], pcbX: "-1.905mm", pcbY: "-2.599944mm", width: "0.58801mm", height: "1.7999964mm", radius: "0.294005mm", shape: "pill" }), jsx("silkscreenpath", { route: [{ "x": -2.5262078000000656, "y": -1.5214091999999937 }, { "x": 2.526207799999952, "y": -1.5214091999999937 }] }), jsx("silkscreenpath", { route: [{ "x": -2.5262078000000656, "y": 1.5214092000001074 }, { "x": 2.526207799999952, "y": 1.5214092000001074 }] }), jsx("silkscreenpath", { route: [{ "x": -2.5262078000000656, "y": -0.43538139999998293 }, { "x": -2.5262078000000656, "y": -1.5214091999999937 }] }), jsx("silkscreenpath", { route: [{ "x": -2.5262078000000656, "y": 0.44889420000004066 }, { "x": -2.5262078000000656, "y": 1.5214092000001074 }] }), jsx("silkscreenpath", { route: [{ "x": -2.0675600000000713, "y": -1.5214091999999937 }, { "x": -2.5262078000000656, "y": -1.5214091999999937 }] }), jsx("silkscreenpath", { route: [{ "x": -0.7975599999999758, "y": -1.5214091999999937 }, { "x": -1.7424400000001015, "y": -1.5214091999999937 }] }), jsx("silkscreenpath", { route: [{ "x": 0.47244000000000597, "y": -1.5214091999999937 }, { "x": -0.47244000000011965, "y": -1.5214091999999937 }] }), jsx("silkscreenpath", { route: [{ "x": 1.7424399999999878, "y": -1.5214091999999937 }, { "x": 0.7975599999999758, "y": -1.5214091999999937 }] }), jsx("silkscreenpath", { route: [{ "x": 2.526207799999952, "y": -1.5214091999999937 }, { "x": 2.0675599999999577, "y": -1.5214091999999937 }] }), jsx("silkscreenpath", { route: [{ "x": 2.526207799999952, "y": 1.5214092000001074 }, { "x": 2.526207799999952, "y": -1.5214091999999937 }] }), jsx("silkscreenpath", { route: [{ "x": -2.0675600000000713, "y": 1.5214092000001074 }, { "x": -2.5262078000000656, "y": 1.5214092000001074 }] }), jsx("silkscreenpath", { route: [{ "x": -0.7975599999999758, "y": 1.5214092000001074 }, { "x": -1.7424400000001015, "y": 1.5214092000001074 }] }), jsx("silkscreenpath", { route: [{ "x": 0.47244000000000597, "y": 1.5214092000001074 }, { "x": -0.47244000000011965, "y": 1.5214092000001074 }] }), jsx("silkscreenpath", { route: [{ "x": 1.7424399999999878, "y": 1.5214092000001074 }, { "x": 0.7975599999999758, "y": 1.5214092000001074 }] }), jsx("silkscreenpath", { route: [{ "x": 2.526207799999952, "y": 1.5214092000001074 }, { "x": 2.0675599999999577, "y": 1.5214092000001074 }] }), jsx("silkscreenpath", { route: [{ "x": -1.7548859999999422, "y": -1.0159999999999627 }, { "x": -1.7600010105124966, "y": -1.0548523621365575 }, { "x": -1.774997462536362, "y": -1.0910570000000916 }, { "x": -1.7988533726489777, "y": -1.1221466273509577 }, { "x": -1.8299429999999575, "y": -1.1460025374635734 }, { "x": -1.866147637863378, "y": -1.1609989894875525 }, { "x": -1.9050000000000864, "y": -1.1661139999999932 }, { "x": -1.9438523621365675, "y": -1.1609989894875525 }, { "x": -1.980056999999988, "y": -1.1460025374635734 }, { "x": -2.0111466273510814, "y": -1.1221466273509577 }, { "x": -2.035002537463697, "y": -1.0910570000000916 }, { "x": -2.049998989487449, "y": -1.0548523621365575 }, { "x": -2.055114000000003, "y": -1.0159999999999627 }, { "x": -2.049998989487449, "y": -0.9771476378634816 }, { "x": -2.035002537463697, "y": -0.9409429999999475 }, { "x": -2.0111466273510814, "y": -0.909853372648854 }, { "x": -1.980056999999988, "y": -0.8859974625362383 }, { "x": -1.9438523621365675, "y": -0.8710010105124866 }, { "x": -1.9050000000000864, "y": -0.8658860000000459 }, { "x": -1.866147637863378, "y": -0.8710010105124866 }, { "x": -1.8299429999999575, "y": -0.8859974625362383 }, { "x": -1.7988533726489777, "y": -0.909853372648854 }, { "x": -1.774997462536362, "y": -0.9409429999999475 }, { "x": -1.7600010105124966, "y": -0.9771476378634816 }, { "x": -1.7548859999999422, "y": -1.0159999999999627 }] }), jsx("silkscreenpath", { route: [{ "x": -2.5262078000000656, "y": -0.43538139999998293 }, { "x": -2.5262078000000656, "y": 0.44889420000004066 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "0.0127mm", pcbY: "4.2004mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -2.764599999999973, "y": 3.4504000000000588 }, { "x": 2.7899999999999636, "y": 3.4504000000000588 }, { "x": 2.7899999999999636, "y": -3.80600000000004 }, { "x": -2.764599999999973, "y": -3.80600000000004 }, { "x": -2.764599999999973, "y": 3.4504000000000588 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C7946.obj?uuid=ec3b9f9b31a74655be3e55848dbee9c1",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C7946.step?uuid=ec3b9f9b31a74655be3e55848dbee9c1",
            pcbRotationOffset: 0,
            modelOriginPosition: { x: -12700000070253736e-21, y: 0, z: 0 },
        }, ...props }));
};

const pinLabels$1 = {
    pin1: ["pin1", "RESET"],
    pin2: ["pin2", "PB3"],
    pin3: ["pin3", "PB4"],
    pin4: ["GND"],
    pin5: ["pin5", "PB0"],
    pin6: ["pin6", "PB1"],
    pin7: ["pin7", "PB2"],
    pin8: ["VCC"]
};
const ATTINY85_20SF = (props) => {
    return (jsx("chip", { pinLabels: pinLabels$1, supplierPartNumbers: {
            "jlcpcb": [
                "C615549"
            ]
        }, manufacturerPartNumber: "ATTINY85_20SF", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin1"], pcbX: "-1.905mm", pcbY: "-3.530092mm", width: "0.6299962mm", height: "2.2500082mm", radius: "0.3149981mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin2"], pcbX: "-0.635mm", pcbY: "-3.530092mm", width: "0.6299962mm", height: "2.2500082mm", radius: "0.3149981mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin3"], pcbX: "0.635mm", pcbY: "-3.530092mm", width: "0.6299962mm", height: "2.2500082mm", radius: "0.3149981mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin4"], pcbX: "1.905mm", pcbY: "-3.530092mm", width: "0.6299962mm", height: "2.2500082mm", radius: "0.3149981mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin8"], pcbX: "-1.905mm", pcbY: "3.530092mm", width: "0.6299962mm", height: "2.2500082mm", radius: "0.3149981mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin7"], pcbX: "-0.635mm", pcbY: "3.530092mm", width: "0.6299962mm", height: "2.2500082mm", radius: "0.3149981mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin6"], pcbX: "0.635mm", pcbY: "3.530092mm", width: "0.6299962mm", height: "2.2500082mm", radius: "0.3149981mm", shape: "pill" }), jsx("smtpad", { portHints: ["pin5"], pcbX: "1.905mm", pcbY: "3.530092mm", width: "0.6299962mm", height: "2.2500082mm", radius: "0.3149981mm", shape: "pill" }), jsx("silkscreenpath", { route: [{ "x": -2.6387044000000515, "y": -2.1763989999999467 }, { "x": -2.6387044000000515, "y": 2.1763990000000604 }, { "x": 2.6387044000000515, "y": 2.1763990000000604 }, { "x": 2.6387044000000515, "y": -2.1763989999999467 }, { "x": -2.6387044000000515, "y": -2.1763989999999467 }] }), jsx("silkscreenpath", { route: [{ "x": -1.7548859999999422, "y": -1.4239240000000564 }, { "x": -1.7600010105124966, "y": -1.4627763621365375 }, { "x": -1.774997462536362, "y": -1.4989810000000716 }, { "x": -1.7988533726489777, "y": -1.5300706273510514 }, { "x": -1.8299429999999575, "y": -1.5539265374637807 }, { "x": -1.866147637863378, "y": -1.5689229894875325 }, { "x": -1.9050000000000864, "y": -1.5740379999999732 }, { "x": -1.9438523621365675, "y": -1.5689229894875325 }, { "x": -1.980056999999988, "y": -1.5539265374637807 }, { "x": -2.0111466273510814, "y": -1.5300706273510514 }, { "x": -2.035002537463697, "y": -1.4989810000000716 }, { "x": -2.049998989487449, "y": -1.4627763621365375 }, { "x": -2.055114000000003, "y": -1.4239240000000564 }, { "x": -2.049998989487449, "y": -1.3850716378634615 }, { "x": -2.035002537463697, "y": -1.3488669999999274 }, { "x": -2.0111466273510814, "y": -1.3177773726490614 }, { "x": -1.980056999999988, "y": -1.2939214625364457 }, { "x": -1.9438523621365675, "y": -1.2789250105124665 }, { "x": -1.9050000000000864, "y": -1.2738100000000259 }, { "x": -1.866147637863378, "y": -1.2789250105124665 }, { "x": -1.8299429999999575, "y": -1.2939214625364457 }, { "x": -1.7988533726489777, "y": -1.3177773726490614 }, { "x": -1.774997462536362, "y": -1.3488669999999274 }, { "x": -1.7600010105124966, "y": -1.3850716378634615 }, { "x": -1.7548859999999422, "y": -1.4239240000000564 }] }), jsx("silkscreenpath", { route: [{ "x": -2.522220000000061, "y": -3.5300920000000815 }, { "x": -2.5273350105126156, "y": -3.5689443621365626 }, { "x": -2.542331462536481, "y": -3.605148999999983 }, { "x": -2.5661873726490967, "y": -3.6362386273510765 }, { "x": -2.5972770000000764, "y": -3.660094537463692 }, { "x": -2.633481637863497, "y": -3.675090989487444 }, { "x": -2.6723340000000917, "y": -3.6802059999999983 }, { "x": -2.7111863621366865, "y": -3.675090989487444 }, { "x": -2.747391000000107, "y": -3.660094537463692 }, { "x": -2.7784806273510867, "y": -3.6362386273510765 }, { "x": -2.802336537463816, "y": -3.605148999999983 }, { "x": -2.817332989487568, "y": -3.5689443621365626 }, { "x": -2.822448000000122, "y": -3.5300920000000815 }, { "x": -2.817332989487568, "y": -3.491239637863373 }, { "x": -2.802336537463816, "y": -3.4550349999999526 }, { "x": -2.7784806273510867, "y": -3.423945372648973 }, { "x": -2.747391000000107, "y": -3.400089462536357 }, { "x": -2.7111863621366865, "y": -3.3850930105124917 }, { "x": -2.6723340000000917, "y": -3.3799779999999373 }, { "x": -2.633481637863497, "y": -3.3850930105124917 }, { "x": -2.5972770000000764, "y": -3.400089462536357 }, { "x": -2.5661873726490967, "y": -3.423945372648973 }, { "x": -2.542331462536481, "y": -3.4550349999999526 }, { "x": -2.5273350105126156, "y": -3.491239637863373 }, { "x": -2.522220000000061, "y": -3.5300920000000815 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "-0.0889mm", pcbY: "5.3434mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -3.0693999999999733, "y": 4.593399999999974 }, { "x": 2.891599999999926, "y": 4.593399999999974 }, { "x": 2.891599999999926, "y": -4.745800000000031 }, { "x": -3.0693999999999733, "y": -4.745800000000031 }, { "x": -3.0693999999999733, "y": 4.593399999999974 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C615549.obj?uuid=4652e19b90fa4dbb8662aa4cba61a532",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C615549.step?uuid=4652e19b90fa4dbb8662aa4cba61a532",
            pcbRotationOffset: 0,
            modelOriginPosition: { x: 0.000012700000070253736, y: -12699999956566899e-21, z: -0.069425 },
        }, ...props }));
};

const pinLabels = {
    pin1: ["A"],
    pin2: ["B"],
    pin3: ["C"],
    pin4: ["D"]
};
const TS_1187A_B_A_B = (props) => {
    const { name = "SW1", ...restProps } = props;
    return (jsx("pushbutton", { name: name, pinLabels: pinLabels, supplierPartNumbers: {
            "jlcpcb": [
                "C318884"
            ]
        }, manufacturerPartNumber: "TS_1187A_B_A_B", footprint: jsxs("footprint", { children: [jsx("smtpad", { portHints: ["pin1"], pcbX: "-2.999994mm", pcbY: "1.849882mm", width: "0.999998mm", height: "0.7500112mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin2"], pcbX: "2.999994mm", pcbY: "1.849882mm", width: "0.999998mm", height: "0.7500112mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin3"], pcbX: "-2.999994mm", pcbY: "-1.849882mm", width: "0.999998mm", height: "0.7500112mm", shape: "rect" }), jsx("smtpad", { portHints: ["pin4"], pcbX: "2.999994mm", pcbY: "-1.849882mm", width: "0.999998mm", height: "0.7500112mm", shape: "rect" }), jsx("silkscreenpath", { route: [{ "x": -1.0007600000001275, "y": 1.800860000000057 }, { "x": 0.899159999999938, "y": 1.800860000000057 }, { "x": 1.8008599999999433, "y": 0.899159999999938 }, { "x": 1.8008599999999433, "y": -0.899159999999938 }, { "x": 0.8000999999999294, "y": -1.8999199999999519 }, { "x": -0.8991600000000517, "y": -1.8999199999999519 }, { "x": -1.800860000000057, "y": -0.9982199999999466 }, { "x": -1.800860000000057, "y": 1.0007600000000139 }, { "x": -1.0007600000001275, "y": 1.800860000000057 }] }), jsx("silkscreenpath", { route: [{ "x": 1.2750800000000027, "y": 2.550160000000119 }, { "x": 2.1701506000000563, "y": 1.6550893999999516 }] }), jsx("silkscreenpath", { route: [{ "x": 2.5501599999998916, "y": 1.1684000000000196 }, { "x": 2.5501599999998916, "y": -1.1684000000000196 }] }), jsx("silkscreenpath", { route: [{ "x": 2.1701506000000563, "y": -1.6550893999999516 }, { "x": 1.2750800000000027, "y": -2.5501600000000053 }] }), jsx("silkscreenpath", { route: [{ "x": -2.5501600000000053, "y": 1.1684000000000196 }, { "x": -2.5501600000000053, "y": -1.1684000000000196 }] }), jsx("silkscreenpath", { route: [{ "x": -2.17015060000017, "y": -1.6550893999999516 }, { "x": -1.2750800000000027, "y": -2.5501600000000053 }] }), jsx("silkscreenpath", { route: [{ "x": -1.2750800000000027, "y": 2.550160000000119 }, { "x": -2.17015060000017, "y": 1.6550893999999516 }] }), jsx("silkscreenpath", { route: [{ "x": -1.2750800000000027, "y": -2.5501600000000053 }, { "x": 1.2750800000000027, "y": -2.5501600000000053 }] }), jsx("silkscreenpath", { route: [{ "x": -1.2750800000000027, "y": 2.550160000000119 }, { "x": 1.2750800000000027, "y": 2.550160000000119 }] }), jsx("silkscreenpath", { route: [{ "x": 1.2750800000000027, "y": 0 }, { "x": 1.2316327025846476, "y": -0.3300149880292338 }, { "x": 1.1042516718573552, "y": -0.6375400000000582 }, { "x": 0.9016177145551865, "y": -0.9016177145553002 }, { "x": 0.6375399999999445, "y": -1.1042516718573552 }, { "x": 0.3300149880292338, "y": -1.2316327025846476 }, { "x": 0, "y": -1.275079999999889 }, { "x": -0.3300149880293475, "y": -1.2316327025846476 }, { "x": -0.6375400000000582, "y": -1.1042516718573552 }, { "x": -0.9016177145553002, "y": -0.9016177145553002 }, { "x": -1.1042516718574689, "y": -0.6375400000000582 }, { "x": -1.2316327025847613, "y": -0.3300149880292338 }, { "x": -1.2750800000000027, "y": 0 }, { "x": -1.2316327025847613, "y": 0.3300149880292338 }, { "x": -1.1042516718574689, "y": 0.6375400000001719 }, { "x": -0.9016177145553002, "y": 0.9016177145554138 }, { "x": -0.6375400000000582, "y": 1.1042516718574689 }, { "x": -0.3300149880293475, "y": 1.2316327025846476 }, { "x": 0, "y": 1.2750800000000027 }, { "x": 0.3300149880292338, "y": 1.2316327025846476 }, { "x": 0.6375399999999445, "y": 1.1042516718574689 }, { "x": 0.9016177145551865, "y": 0.9016177145554138 }, { "x": 1.1042516718573552, "y": 0.6375400000001719 }, { "x": 1.2316327025846476, "y": 0.3300149880292338 }, { "x": 1.2750800000000027, "y": 0 }] }), jsx("silkscreentext", { text: "{NAME}", pcbX: "0mm", pcbY: "3.5908mm", anchorAlignment: "center", fontSize: "1mm" }), jsx("courtyardoutline", { outline: [{ "x": -3.755200000000059, "y": 2.8407999999999447 }, { "x": 3.7551999999998316, "y": 2.8407999999999447 }, { "x": 3.7551999999998316, "y": -2.8661999999999352 }, { "x": -3.755200000000059, "y": -2.8661999999999352 }, { "x": -3.755200000000059, "y": 2.8407999999999447 }] })] }), cadModel: {
            objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C318884.obj?uuid=91b67c1735f643ffb2e7226c23dd3492",
            stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C318884.step?uuid=91b67c1735f643ffb2e7226c23dd3492",
            pcbRotationOffset: 0,
            modelOriginPosition: { x: 0.000012700000070253736, y: 0.0004999999999999449, z: -0.05 },
        }, ...restProps }));
};

var board_circuit = () => (jsxs("board", { width: "35mm", height: "50mm", schAutoLayoutEnabled: true, children: [jsx("schematicsection", { name: "power", displayName: "USB-C Power and 3.3V Regulation" }), jsx("schematicsection", { name: "headers", displayName: "ICSP and I2C Headers" }), jsx("schematicsection", { name: "status", displayName: "Status LED" }), jsx("schematicsection", { name: "controls", displayName: "Pushbutton" }), jsx("schematicsection", { name: "temperature", displayName: "Temperature Sensor" }), jsx("schematicsection", { name: "mcu", displayName: "ATtiny85 and ICSP" }), jsx(AMS1117_3_3, { name: "V1", schSectionName: "power" }), jsx(TYPE_C_31_M_12, { name: "USBC", pcbY: -21, schSectionName: "power" }), jsx(LM335DT, { name: "U1", schSectionName: "temperature" }), jsx(ATTINY85_20SF, { name: "U2", schSectionName: "mcu" }), jsx("silkscreenrect", { width: 30, height: 30, pcbY: 9 }), jsx(TS_1187A_B_A_B, { name: "SW1", pcbX: 10, pcbY: -16, schSectionName: "controls" }), jsx("led", { name: "LED1", footprint: "0603", color: "red", schSectionName: "status" }), jsx("resistor", { name: "R1", footprint: "0603", resistance: "4.7k\u03A9", schSectionName: "controls" }), jsx("resistor", { name: "R2", footprint: "0603", resistance: "220\u03A9", schSectionName: "status" }), jsx("resistor", { name: "R3", footprint: "0603", resistance: "5.1k\u03A9", schSectionName: "power" }), jsx("resistor", { name: "R4", footprint: "0603", resistance: "5.1k\u03A9", schSectionName: "power" }), jsx("capacitor", { name: "C1", footprint: "0603", capacitance: "0.1\u00B5F", schSectionName: "power" }), jsx("capacitor", { name: "C2", footprint: "0805", capacitance: "10\u00B5F", schSectionName: "power" }), jsx("capacitor", { name: "C3", footprint: "0603", capacitance: "0.1\u00B5F", schSectionName: "mcu" }), jsx("resistor", { name: "R5", footprint: "0603", resistance: "2k\u03A9", schSectionName: "temperature" }), jsx("resistor", { name: "R6", footprint: "0603", resistance: "10k\u03A9", schSectionName: "temperature" }), jsx("resistor", { name: "R7", footprint: "0603", resistance: "47k\u03A9", schSectionName: "temperature" }), jsx("pinheader", { name: "J1", pinCount: 6, gender: "female", footprint: "pinrow6_rows2_female", doubleRow: true, pcbX: -12, pcbRotation: 90, pcbY: -18, schSectionName: "headers", showSilkscreenPinLabels: true, pinLabels: ["VCC", "GND", "MOSI", "MISO", "SCK", "RESET"] }), jsx("pinheader", { name: "J2", pinCount: 4, pcbY: 22, gender: "female", footprint: "pinrow4_female", doubleRow: false, schSectionName: "headers", showSilkscreenPinLabels: true, pinLabels: ["VCC", "GND", "SDA", "SCL"] }), jsx("trace", { name: "vbus_vin", from: ".USBC > .VBUS", to: ".V1 > .VIN" }), jsx("trace", { name: "usb_gnd", from: ".USBC > .GND", to: ".V1 > .GND" }), jsx("trace", { name: "cc1_r3", from: ".USBC > .CC1", to: ".R3 > .pin1" }), jsx("trace", { name: "r3_gnd", from: ".R3 > .pin2", to: ".V1 > .GND" }), jsx("trace", { name: "cc2_r4", from: ".USBC > .CC2", to: ".R4 > .pin1" }), jsx("trace", { name: "r4_gnd", from: ".R4 > .pin2", to: ".V1 > .GND" }), jsx("trace", { name: "vin_c2", from: ".V1 > .VIN", to: ".C2 > .pin1" }), jsx("trace", { name: "c2_gnd", from: ".C2 > .pin2", to: ".V1 > .GND" }), jsx("trace", { name: "vout_c1", from: ".V1 > .VOUT", to: ".C1 > .pin1" }), jsx("trace", { name: "c1_gnd", from: ".C1 > .pin2", to: ".V1 > .GND" }), jsx("trace", { name: "vout_u2", from: ".V1 > .VOUT", to: ".U2 > .VCC" }), jsx("trace", { name: "gnd_u2", from: ".V1 > .GND", to: ".U2 > .GND" }), jsx("trace", { name: "u2_vcc_c3", from: ".U2 > .VCC", to: ".C3 > .pin1" }), jsx("trace", { name: "c3_gnd", from: ".C3 > .pin2", to: ".U2 > .GND" }), jsx("trace", { name: "j1_vcc_u2", from: ".J1 > .VCC", to: ".U2 > .VCC" }), jsx("trace", { name: "j1_gnd_u2", from: ".J1 > .GND", to: ".U2 > .GND" }), jsx("trace", { name: "icsp_mosi", from: ".J1 > .MOSI", to: ".U2 > .PB0" }), jsx("trace", { name: "icsp_miso", from: ".J1 > .MISO", to: ".U2 > .PB1" }), jsx("trace", { name: "icsp_sck", from: ".J1 > .SCK", to: ".U2 > .PB2" }), jsx("trace", { name: "icsp_reset", from: ".J1 > .RESET", to: ".U2 > .RESET" }), jsx("trace", { name: "vout_j2", from: ".V1 > .VOUT", to: ".J2 > .VCC" }), jsx("trace", { name: "gnd_j2", from: ".V1 > .GND", to: ".J2 > .GND" }), jsx("trace", { name: "i2c_sda", from: ".U2 > .PB0", to: ".J2 > .SDA" }), jsx("trace", { name: "i2c_scl", from: ".U2 > .PB2", to: ".J2 > .SCL" }), jsx("trace", { name: "pb1_r2", from: ".U2 > .PB1", to: ".R2 > .pin1" }), jsx("trace", { name: "r2_led", from: ".R2 > .pin2", to: ".LED1 > .anode" }), jsx("trace", { name: "led_gnd", from: ".LED1 > .cathode", to: ".V1 > .GND" }), jsx("trace", { name: "pb4_sw", from: ".U2 > .PB4", to: ".SW1 > .pin1" }), jsx("trace", { name: "pb4_sw_c", from: ".U2 > .PB4", to: ".SW1 > .pin3" }), jsx("trace", { name: "sw_gnd", from: ".SW1 > .pin2", to: ".V1 > .GND" }), jsx("trace", { name: "sw_d_gnd", from: ".SW1 > .pin4", to: ".V1 > .GND" }), jsx("trace", { name: "vcc_r1", from: ".U2 > .VCC", to: ".R1 > .pin1" }), jsx("trace", { name: "r1_pb4", from: ".R1 > .pin2", to: ".U2 > .PB4" }), jsx("trace", { name: "vbus_r5", from: ".USBC > .VBUS", to: ".R5 > .pin1" }), jsx("trace", { name: "r5_temp", from: ".R5 > .pin2", to: ".U1 > .V_POS" }), jsx("trace", { name: "temp_gnd", from: ".U1 > .V_NEG", to: ".V1 > .GND" }), jsx("trace", { name: "temp_r6", from: ".U1 > .V_POS", to: ".R6 > .pin1" }), jsx("trace", { name: "temp_pb3", from: ".R6 > .pin2", to: ".U2 > .PB3" }), jsx("trace", { name: "r7_gnd", from: ".R7 > .pin1", to: ".V1 > .GND" }), jsx("trace", { name: "adc_r7", from: ".R6 > .pin2", to: ".R7 > .pin2" })] }));

export { board_circuit as default };