seveibar/wifi-test-board-1

A tscircuit package created by seveibar.

Usage: To use "@tsci/seveibar.wifi-test-board-1" in a project: 1. Import the component: ```tsx import WifiTestBoard from "@tsci/seveibar.wifi-test-board-1" ``` 2. Use the component in your React/tscircuit layout: ```tsx export default () => ( <board> <WifiTestBoard /> </board> ) ``` The component includes a USB-C connector, ESP32-S3 MINI module, 5V to 3.3V regulator, and pull-down resistors for USB-C configuration.

Version
0.0.1
License
unset
Stars
1

dist/index.cjs

PCBPCB preview for dist/index.cjs
SchematicSchematic preview for dist/index.cjs
'use strict';

var core = require('@tscircuit/core');

function _extends$1$1() { return _extends$1$1 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$1$1.apply(null, arguments); }
const pinLabels$1$1 = {
  "1": "pos",
  "2": "neg"
};
const pinNames = Object.values(pinLabels$1$1);
const RedLed = props => {
  return /*#__PURE__*/React.createElement("led", _extends$1$1({}, props, {
    cadModel: {
      objUrl: "https://modelcdn.tscircuit.com/easyeda_models/download?uuid=d0740cb8891c49a88b6949cb978926f3&pn=C965799",
      rotationOffset: {
        x: 0,
        y: 0,
        z: 0
      },
      positionOffset: {
        x: 0,
        y: 0,
        z: 0
      }
    },
    pinLabels: pinLabels$1$1,
    schPinSpacing: 0.75,
    schPortArrangement: {
      leftSide: {
        direction: "top-to-bottom",
        pins: [1]
      },
      rightSide: {
        direction: "bottom-to-top",
        pins: [2]
      }
    },
    supplierPartNumbers: {
      jlcpcb: ["C965799"]
    },
    footprint: /*#__PURE__*/React.createElement("footprint", null, /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["2"],
      pcbX: "-0.7995919999999614mm",
      pcbY: "-0.003428999999982807mm",
      width: "0.7999983999999999mm",
      height: "0.7999983999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["1"],
      pcbX: "0.7995919999999614mm",
      pcbY: "0.003428999999982807mm",
      width: "0.7999983999999999mm",
      height: "0.7999983999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("silkscreenpath", {
      route: [{
        x: 0.22047200000019984,
        y: -0.3235452000000123
      }, {
        x: 0.2105660000000853,
        y: -0.3235452000000123
      }, {
        x: -0.11953239999991183,
        y: 0.006477000000018052
      }]
    }), /*#__PURE__*/React.createElement("silkscreenpath", {
      route: [{
        x: 0.22047200000019984,
        y: 0.3564890000001242
      }, {
        x: 0.22047200000019984,
        y: 0.3464814000001297
      }, {
        x: -0.11953239999991183,
        y: 0.006477000000018052
      }]
    }), /*#__PURE__*/React.createElement("silkscreenpath", {
      route: [{
        x: 0.22047200000019984,
        y: 0.3564890000001242
      }, {
        x: 0.22047200000019984,
        y: -0.3235452000000123
      }]
    }), /*#__PURE__*/React.createElement("silkscreenpath", {
      route: [{
        x: 0.24051260000010188,
        y: 0.7565136000000621
      }, {
        x: 1.3905738000000838,
        y: 0.7565136000000621
      }]
    }), /*#__PURE__*/React.createElement("silkscreenpath", {
      route: [{
        x: 0.24051260000010188,
        y: -0.7436103999999659
      }, {
        x: 1.3905738000000838,
        y: -0.7436103999999659
      }]
    }), /*#__PURE__*/React.createElement("silkscreenpath", {
      route: [{
        x: 1.3905738000000838,
        y: 0.7564628000000084
      }, {
        x: 1.3905738000000838,
        y: -0.7235189999998966
      }]
    }), /*#__PURE__*/React.createElement("silkscreenpath", {
      route: [{
        x: -0.1394967999997334,
        y: -0.7458963999999924
      }, {
        x: -1.1896089999999049,
        y: -0.7458963999999924
      }]
    }), /*#__PURE__*/React.createElement("silkscreenpath", {
      route: [{
        x: -1.4895575999997845,
        y: -0.345795599999974
      }, {
        x: -1.4895575999997845,
        y: -0.4458207999998649
      }, {
        x: -1.1896089999999049,
        y: -0.7458963999999924
      }]
    }), /*#__PURE__*/React.createElement("silkscreenpath", {
      route: [{
        x: -1.4895575999997845,
        y: 0.3541268000000173
      }, {
        x: -1.4895575999997845,
        y: -0.345795599999974
      }]
    }), /*#__PURE__*/React.createElement("silkscreenpath", {
      route: [{
        x: -1.4895575999997845,
        y: 0.3541268000000173
      }, {
        x: -1.4895575999997845,
        y: 0.4542790000000423
      }, {
        x: -1.1896089999999049,
        y: 0.7542276000000356
      }]
    }), /*#__PURE__*/React.createElement("silkscreenpath", {
      route: [{
        x: -0.1394967999997334,
        y: 0.7542276000000356
      }, {
        x: -1.1896089999999049,
        y: 0.7542276000000356
      }]
    }), /*#__PURE__*/React.createElement("silkscreenpath", {
      route: [{
        x: 0.22047200000019984,
        y: 0.006477000000018052
      }, {
        x: -0.11953239999991183,
        y: 0.006477000000018052
      }]
    }))
  }));
};
const useRedLed = core.createUseComponent(RedLed, pinNames);

function _extends$2() { return _extends$2 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$2.apply(null, arguments); }
const pinLabels$2 = {
  pin7: ["pin7", "EP"],
  pin6: ["pin6", "IN"],
  pin5: ["pin5", "PG"],
  pin4: ["pin4", "EN"],
  pin3: ["pin3", "GND"],
  pin2: ["pin2", "FB"],
  pin1: ["pin1", "OUT"]
};
const TPS74601PDRVR = props => {
  return /*#__PURE__*/React.createElement("chip", _extends$2({}, props, {
    cadModel: {
      objUrl: "https://modelcdn.tscircuit.com/easyeda_models/download?uuid=c909123e4a7a4da5a0270979fee6c02c&pn=C2837407",
      rotationOffset: {
        x: 0,
        y: 0,
        z: 0
      },
      positionOffset: {
        x: 0,
        y: 0,
        z: 0
      }
    },
    pinLabels: pinLabels$2,
    schPinSpacing: 0.75,
    supplierPartNumbers: {
      lcsc: ["C2837407"]
    },
    footprint: /*#__PURE__*/React.createElement("footprint", null, /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin7"],
      pcbX: "0mm",
      pcbY: "0mm",
      width: "1.5999967999999998mm",
      height: "0.9999979999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin6"],
      pcbX: "-0.6500113999999968mm",
      pcbY: "0.9751059999999967mm",
      width: "0.39999919999999994mm",
      height: "0.45001179999999996mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin5"],
      pcbX: "0mm",
      pcbY: "0.9751059999999967mm",
      width: "0.39999919999999994mm",
      height: "0.45001179999999996mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin4"],
      pcbX: "0.6500113999999968mm",
      pcbY: "0.9751059999999967mm",
      width: "0.39999919999999994mm",
      height: "0.45001179999999996mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin3"],
      pcbX: "0.6500113999999968mm",
      pcbY: "-0.9751059999999967mm",
      width: "0.39999919999999994mm",
      height: "0.45001179999999996mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin2"],
      pcbX: "0mm",
      pcbY: "-0.9751059999999967mm",
      width: "0.39999919999999994mm",
      height: "0.45001179999999996mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin1"],
      pcbX: "-0.6500113999999968mm",
      pcbY: "-0.9751059999999967mm",
      width: "0.39999919999999994mm",
      height: "0.45001179999999996mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("silkscreenpath", {
      route: [{
        x: -1.0500360000000057,
        y: -1.0490199999999987
      }, {
        x: -1.0500360000000057,
        y: 1.0500360000000057
      }]
    }), /*#__PURE__*/React.createElement("silkscreenpath", {
      route: [{
        x: 1.0500359999999915,
        y: -1.0490199999999987
      }, {
        x: 1.0500359999999915,
        y: 1.0500360000000057
      }]
    }))
  }));
};
const useTPS74601PDRVR = core.createUseComponent(TPS74601PDRVR, pinLabels$2);

const Reg5vTo3v3 = props => {
  const PWR1 = useTPS74601PDRVR("PWR1");
  const R6 = core.useResistor("R6", {
    resistance: "1M",
    footprint: "0402"
  });
  const R7 = core.useResistor("R7", {
    resistance: "200k",
    footprint: "0402"
  });
  const R8 = core.useResistor("R8", {
    resistance: "1k",
    footprint: "0402"
  });
  const C6 = core.useCapacitor("C6", {
    footprint: "cap0805",
    capacitance: "10uF"
  });
  const C7 = core.useCapacitor("C7", {
    footprint: "cap0805",
    capacitance: "10uF"
  });
  const LED1 = useRedLed("LED1");
  return /*#__PURE__*/React.createElement("group", props, /*#__PURE__*/React.createElement(PWR1, {
    pcbX: 4,
    pcbRotation: "90deg",
    EN: "net.v5",
    EP: "net.gnd",
    IN: "net.v5",
    OUT: "net.v3_3"
  }), /*#__PURE__*/React.createElement(R6, {
    pcbX: 7,
    pcbY: -0.5,
    pin1: PWR1.OUT,
    pcbRotation: "180deg",
    schX: -3
  }), /*#__PURE__*/React.createElement(R7, {
    pcbX: 6,
    pcbY: 1,
    pcbRotation: "90deg",
    schX: -3,
    schY: -2
  }), /*#__PURE__*/React.createElement(R8, {
    pcbRotation: "180deg",
    pcbX: 7,
    pcbY: -3,
    pin1: "net.v3_3",
    schX: -3,
    schY: 2
  }), /*#__PURE__*/React.createElement(C6, {
    neg: "net.gnd",
    pos: "net.v5",
    schX: 3,
    schY: -1.5
  }), /*#__PURE__*/React.createElement(C7, {
    pcbRotation: "180deg",
    pcbX: 0,
    pcbY: -3,
    pos: "net.v3_3",
    neg: "net.gnd",
    schX: 3
  }), /*#__PURE__*/React.createElement(LED1, {
    pcbX: 4,
    pcbY: -3,
    neg: "net.gnd",
    pos: R8.pin2,
    schX: 4,
    schY: 3
  }), /*#__PURE__*/React.createElement("trace", {
    from: PWR1.FB,
    to: R6.pin2
  }), /*#__PURE__*/React.createElement("trace", {
    from: PWR1.FB,
    to: R7.pin1
  }), /*#__PURE__*/React.createElement("trace", {
    from: R7.pin2,
    to: "net.gnd"
  }), /*#__PURE__*/React.createElement("trace", {
    from: PWR1.GND,
    to: "net.gnd"
  }), /*#__PURE__*/React.createElement("trace", {
    from: C7.neg,
    to: "net.gnd"
  }), /*#__PURE__*/React.createElement("trace", {
    from: C7.pos,
    to: "net.v3_3"
  }));
};

function _extends$1() { return _extends$1 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$1.apply(null, arguments); }
const pinLabels$1 = {
  pin1: ["GND1"],
  pin2: ["GND2"],
  pin3: ["3V3"],
  pin4: ["IO0"],
  pin5: ["IO1"],
  pin6: ["IO2"],
  pin7: ["IO3"],
  pin8: ["IO4"],
  pin9: ["IO5"],
  pin10: ["IO6"],
  pin11: ["IO7"],
  pin12: ["IO8"],
  pin13: ["IO9"],
  pin14: ["IO10"],
  pin15: ["IO11"],
  pin16: ["IO12"],
  pin17: ["IO13"],
  pin18: ["IO14"],
  pin19: ["IO15"],
  pin20: ["IO16"],
  pin21: ["IO17"],
  pin22: ["IO18"],
  pin23: ["IO19"],
  pin24: ["IO20"],
  pin25: ["IO21"],
  pin26: ["IO26"],
  pin27: ["IO47"],
  pin28: ["IO33"],
  pin29: ["IO34"],
  pin30: ["IO48"],
  pin31: [],
  pin32: [],
  pin33: [],
  pin34: [],
  pin35: [],
  pin36: [],
  pin37: [],
  pin38: [],
  pin39: [],
  pin40: [],
  pin41: [],
  pin42: [],
  pin43: [],
  pin44: [],
  pin45: [],
  pin46: [],
  pin47: [],
  pin48: [],
  pin49: [],
  pin50: [],
  pin51: [],
  pin52: [],
  pin53: [],
  pin54: [],
  pin55: [],
  pin56: [],
  pin57: [],
  pin58: [],
  pin59: [],
  pin60: [],
  pin61: ["GND3"],
  pin62: ["GND4"],
  pin63: ["GND5"],
  pin64: ["GND6"],
  pin65: ["GND7"],
  pin66: ["GND8"],
  pin67: ["GND9"],
  pin68: ["GND10"],
  pin69: ["GND11"],
  pin70: ["GND12"],
  pin71: ["GND13"],
  pin72: ["GND14"],
  pin73: ["GND15"]
};
const ESP32_S3_MINI_1_N8 = props => {
  return /*#__PURE__*/React.createElement("chip", _extends$1({}, props, {
    cadModel: {
      objUrl: "https://modelcdn.tscircuit.com/easyeda_models/download?uuid=1270b5cf7aa247fc9d0ae79a19686940&pn=C2913206",
      rotationOffset: {
        x: 0,
        y: 0,
        z: 0
      },
      positionOffset: {
        x: 0,
        y: 0,
        z: 0
      }
    },
    pinLabels: pinLabels$1,
    supplierPartNumbers: {
      lcsc: ["C2913206"]
    },
    footprint: /*#__PURE__*/React.createElement("footprint", null, /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin1"],
      pcbX: "-6.975094000000013mm",
      pcbY: "5.950076999999965mm",
      width: "0.7999983999999999mm",
      height: "0.39999919999999994mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin2"],
      pcbX: "-6.975094000000013mm",
      pcbY: "5.10019299999999mm",
      width: "0.7999983999999999mm",
      height: "0.39999919999999994mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin3"],
      pcbX: "-6.975094000000013mm",
      pcbY: "4.250054999999975mm",
      width: "0.7999983999999999mm",
      height: "0.39999919999999994mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin4"],
      pcbX: "-6.975094000000013mm",
      pcbY: "3.4001710000000003mm",
      width: "0.7999983999999999mm",
      height: "0.39999919999999994mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin5"],
      pcbX: "-6.975094000000013mm",
      pcbY: "2.550032999999985mm",
      width: "0.7999983999999999mm",
      height: "0.39999919999999994mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin6"],
      pcbX: "-6.975094000000013mm",
      pcbY: "1.7001489999998967mm",
      width: "0.7999983999999999mm",
      height: "0.39999919999999994mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin7"],
      pcbX: "-6.975094000000013mm",
      pcbY: "0.8500109999998813mm",
      width: "0.7999983999999999mm",
      height: "0.39999919999999994mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin8"],
      pcbX: "-6.975094000000013mm",
      pcbY: "0.0001269999999067295mm",
      width: "0.7999983999999999mm",
      height: "0.39999919999999994mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin9"],
      pcbX: "-6.975094000000013mm",
      pcbY: "-0.8497570000000678mm",
      width: "0.7999983999999999mm",
      height: "0.39999919999999994mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin10"],
      pcbX: "-6.975094000000013mm",
      pcbY: "-1.6998950000000832mm",
      width: "0.7999983999999999mm",
      height: "0.39999919999999994mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin11"],
      pcbX: "-6.975094000000013mm",
      pcbY: "-2.5497790000001714mm",
      width: "0.7999983999999999mm",
      height: "0.39999919999999994mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin12"],
      pcbX: "-6.975094000000013mm",
      pcbY: "-3.399917000000073mm",
      width: "0.7999983999999999mm",
      height: "0.39999919999999994mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin13"],
      pcbX: "-6.975094000000013mm",
      pcbY: "-4.249801000000048mm",
      width: "0.7999983999999999mm",
      height: "0.39999919999999994mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin14"],
      pcbX: "-6.975094000000013mm",
      pcbY: "-5.099939000000063mm",
      width: "0.7999983999999999mm",
      height: "0.39999919999999994mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin15"],
      pcbX: "-6.975094000000013mm",
      pcbY: "-5.949823000000038mm",
      width: "0.7999983999999999mm",
      height: "0.39999919999999994mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin16"],
      pcbX: "-5.949950000000058mm",
      pcbY: "-7.025004999999965mm",
      width: "0.39999919999999994mm",
      height: "0.7999983999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin17"],
      pcbX: "-5.1000660000000835mm",
      pcbY: "-7.025004999999965mm",
      width: "0.39999919999999994mm",
      height: "0.7999983999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin18"],
      pcbX: "-4.249928000000068mm",
      pcbY: "-7.025004999999965mm",
      width: "0.39999919999999994mm",
      height: "0.7999983999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin19"],
      pcbX: "-3.4000440000000935mm",
      pcbY: "-7.025004999999965mm",
      width: "0.39999919999999994mm",
      height: "0.7999983999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin20"],
      pcbX: "-2.549906000000078mm",
      pcbY: "-7.025004999999965mm",
      width: "0.39999919999999994mm",
      height: "0.7999983999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin21"],
      pcbX: "-1.7000220000001036mm",
      pcbY: "-7.025004999999965mm",
      width: "0.39999919999999994mm",
      height: "0.7999983999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin22"],
      pcbX: "-0.8498839999999745mm",
      pcbY: "-7.025004999999965mm",
      width: "0.39999919999999994mm",
      height: "0.7999983999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin23"],
      pcbX: "0mm",
      pcbY: "-7.025004999999965mm",
      width: "0.39999919999999994mm",
      height: "0.7999983999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin24"],
      pcbX: "0.8498839999999745mm",
      pcbY: "-7.025004999999965mm",
      width: "0.39999919999999994mm",
      height: "0.7999983999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin25"],
      pcbX: "1.70002199999999mm",
      pcbY: "-7.025004999999965mm",
      width: "0.39999919999999994mm",
      height: "0.7999983999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin26"],
      pcbX: "2.5499059999999645mm",
      pcbY: "-7.025004999999965mm",
      width: "0.39999919999999994mm",
      height: "0.7999983999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin27"],
      pcbX: "3.40004399999998mm",
      pcbY: "-7.025004999999965mm",
      width: "0.39999919999999994mm",
      height: "0.7999983999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin28"],
      pcbX: "4.249927999999954mm",
      pcbY: "-7.025004999999965mm",
      width: "0.39999919999999994mm",
      height: "0.7999983999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin29"],
      pcbX: "5.10006599999997mm",
      pcbY: "-7.025004999999965mm",
      width: "0.39999919999999994mm",
      height: "0.7999983999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin30"],
      pcbX: "5.949949999999944mm",
      pcbY: "-7.025004999999965mm",
      width: "0.39999919999999994mm",
      height: "0.7999983999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin31"],
      pcbX: "6.975094000000013mm",
      pcbY: "-5.949823000000038mm",
      width: "0.7999983999999999mm",
      height: "0.39999919999999994mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin32"],
      pcbX: "6.975094000000013mm",
      pcbY: "-5.099939000000063mm",
      width: "0.7999983999999999mm",
      height: "0.39999919999999994mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin33"],
      pcbX: "6.975094000000013mm",
      pcbY: "-4.249801000000048mm",
      width: "0.7999983999999999mm",
      height: "0.39999919999999994mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin34"],
      pcbX: "6.975094000000013mm",
      pcbY: "-3.399917000000073mm",
      width: "0.7999983999999999mm",
      height: "0.39999919999999994mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin35"],
      pcbX: "6.975094000000013mm",
      pcbY: "-2.5497790000001714mm",
      width: "0.7999983999999999mm",
      height: "0.39999919999999994mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin36"],
      pcbX: "6.975094000000013mm",
      pcbY: "-1.6998950000000832mm",
      width: "0.7999983999999999mm",
      height: "0.39999919999999994mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin37"],
      pcbX: "6.975094000000013mm",
      pcbY: "-0.8497570000000678mm",
      width: "0.7999983999999999mm",
      height: "0.39999919999999994mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin38"],
      pcbX: "6.975094000000013mm",
      pcbY: "0.0001269999999067295mm",
      width: "0.7999983999999999mm",
      height: "0.39999919999999994mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin39"],
      pcbX: "6.975094000000013mm",
      pcbY: "0.8500109999998813mm",
      width: "0.7999983999999999mm",
      height: "0.39999919999999994mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin40"],
      pcbX: "6.975094000000013mm",
      pcbY: "1.7001489999998967mm",
      width: "0.7999983999999999mm",
      height: "0.39999919999999994mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin41"],
      pcbX: "6.975094000000013mm",
      pcbY: "2.550032999999985mm",
      width: "0.7999983999999999mm",
      height: "0.39999919999999994mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin42"],
      pcbX: "6.975094000000013mm",
      pcbY: "3.4001710000000003mm",
      width: "0.7999983999999999mm",
      height: "0.39999919999999994mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin43"],
      pcbX: "6.975094000000013mm",
      pcbY: "4.250054999999975mm",
      width: "0.7999983999999999mm",
      height: "0.39999919999999994mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin44"],
      pcbX: "6.975094000000013mm",
      pcbY: "5.10019299999999mm",
      width: "0.7999983999999999mm",
      height: "0.39999919999999994mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin45"],
      pcbX: "6.975094000000013mm",
      pcbY: "5.950076999999965mm",
      width: "0.7999983999999999mm",
      height: "0.39999919999999994mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin46"],
      pcbX: "5.949949999999944mm",
      pcbY: "7.025004999999965mm",
      width: "0.39999919999999994mm",
      height: "0.7999983999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin47"],
      pcbX: "5.10006599999997mm",
      pcbY: "7.025004999999965mm",
      width: "0.39999919999999994mm",
      height: "0.7999983999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin48"],
      pcbX: "4.249927999999954mm",
      pcbY: "7.025004999999965mm",
      width: "0.39999919999999994mm",
      height: "0.7999983999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin49"],
      pcbX: "3.40004399999998mm",
      pcbY: "7.025004999999965mm",
      width: "0.39999919999999994mm",
      height: "0.7999983999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin50"],
      pcbX: "2.5499059999999645mm",
      pcbY: "7.025004999999965mm",
      width: "0.39999919999999994mm",
      height: "0.7999983999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin51"],
      pcbX: "1.70002199999999mm",
      pcbY: "7.025004999999965mm",
      width: "0.39999919999999994mm",
      height: "0.7999983999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin52"],
      pcbX: "0.8498839999999745mm",
      pcbY: "7.025004999999965mm",
      width: "0.39999919999999994mm",
      height: "0.7999983999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin53"],
      pcbX: "0mm",
      pcbY: "7.025004999999965mm",
      width: "0.39999919999999994mm",
      height: "0.7999983999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin54"],
      pcbX: "-0.8498839999999745mm",
      pcbY: "7.025004999999965mm",
      width: "0.39999919999999994mm",
      height: "0.7999983999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin55"],
      pcbX: "-1.7000220000001036mm",
      pcbY: "7.025004999999965mm",
      width: "0.39999919999999994mm",
      height: "0.7999983999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin56"],
      pcbX: "-2.549906000000078mm",
      pcbY: "7.025004999999965mm",
      width: "0.39999919999999994mm",
      height: "0.7999983999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin57"],
      pcbX: "-3.4000440000000935mm",
      pcbY: "7.025004999999965mm",
      width: "0.39999919999999994mm",
      height: "0.7999983999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin58"],
      pcbX: "-4.249928000000068mm",
      pcbY: "7.025004999999965mm",
      width: "0.39999919999999994mm",
      height: "0.7999983999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin59"],
      pcbX: "-5.1000660000000835mm",
      pcbY: "7.025004999999965mm",
      width: "0.39999919999999994mm",
      height: "0.7999983999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin60"],
      pcbX: "-5.949950000000058mm",
      pcbY: "7.025004999999965mm",
      width: "0.39999919999999994mm",
      height: "0.7999983999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin61"],
      pcbX: "-6.999986000000149mm",
      pcbY: "7.000113000000056mm",
      width: "0.7999983999999999mm",
      height: "0.7999983999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin62"],
      pcbX: "6.999986000000035mm",
      pcbY: "7.000113000000056mm",
      width: "0.7999983999999999mm",
      height: "0.7999983999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin63"],
      pcbX: "-6.999986000000149mm",
      pcbY: "-6.999859000000129mm",
      width: "0.7999983999999999mm",
      height: "0.7999983999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin64"],
      pcbX: "6.999986000000035mm",
      pcbY: "-6.999859000000129mm",
      width: "0.7999983999999999mm",
      height: "0.7999983999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin65"],
      pcbX: "-1.6499840000000177mm",
      pcbY: "1.6501109999999244mm",
      width: "1.1999975999999999mm",
      height: "1.1999975999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin66"],
      pcbX: "0mm",
      pcbY: "1.6501109999999244mm",
      width: "1.1999975999999999mm",
      height: "1.1999975999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin67"],
      pcbX: "1.649983999999904mm",
      pcbY: "1.6501109999999244mm",
      width: "1.1999975999999999mm",
      height: "1.1999975999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin68"],
      pcbX: "-1.6499840000000177mm",
      pcbY: "0.0001269999999067295mm",
      width: "1.1999975999999999mm",
      height: "1.1999975999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin69"],
      pcbX: "0mm",
      pcbY: "0.0001269999999067295mm",
      width: "1.1999975999999999mm",
      height: "1.1999975999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin70"],
      pcbX: "1.649983999999904mm",
      pcbY: "0.0001269999999067295mm",
      width: "1.1999975999999999mm",
      height: "1.1999975999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin71"],
      pcbX: "-1.6499840000000177mm",
      pcbY: "-1.6498569999999972mm",
      width: "1.1999975999999999mm",
      height: "1.1999975999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin72"],
      pcbX: "0mm",
      pcbY: "-1.6498569999999972mm",
      width: "1.1999975999999999mm",
      height: "1.1999975999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["pin73"],
      pcbX: "1.649983999999904mm",
      pcbY: "-1.6498569999999972mm",
      width: "1.1999975999999999mm",
      height: "1.1999975999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("silkscreenpath", {
      route: [{
        x: -4.8999902000000475,
        y: 12.100128199999858
      }, {
        x: -3.3999932000001536,
        y: 12.100128199999858
      }, {
        x: -3.3999932000001536,
        y: 10.500131399999987
      }, {
        x: -1.1999976000000743,
        y: 10.500131399999987
      }, {
        x: -1.1999976000000743,
        y: 12.100128199999858
      }, {
        x: 0.9999979999998914,
        y: 12.100128199999858
      }, {
        x: 0.9999979999998914,
        y: 10.500131399999987
      }, {
        x: 3.1999935999999707,
        y: 10.500131399999987
      }, {
        x: 3.1999935999999707,
        y: 12.100128199999858
      }, {
        x: 5.300014799999872,
        y: 12.100128199999858
      }, {
        x: 5.300014799999872,
        y: 9.400133600000004
      }]
    }), /*#__PURE__*/React.createElement("silkscreenpath", {
      route: [{
        x: -6.50001240000006,
        y: 9.400133600000004
      }, {
        x: -6.50001240000006,
        y: 12.100128199999858
      }, {
        x: -4.8999902000000475,
        y: 12.100128199999858
      }, {
        x: -4.8999902000000475,
        y: 9.400133600000004
      }]
    }), /*#__PURE__*/React.createElement("silkscreenpath", {
      route: [{
        x: -7.70001000000002,
        y: 7.749743199999898
      }, {
        x: 7.800009799999998,
        y: 7.749743199999898
      }, {
        x: 7.800009799999998,
        y: 7.786014399999885
      }]
    }), /*#__PURE__*/React.createElement("silkscreenpath", {
      route: [{
        x: -7.70001000000002,
        y: 12.800126800000044
      }, {
        x: 7.800009799999998,
        y: 12.800126800000044
      }, {
        x: 7.800009799999998,
        y: -7.6998830000001135
      }, {
        x: -7.70001000000002,
        y: -7.6998830000001135
      }, {
        x: -7.70001000000002,
        y: 12.800126800000044
      }]
    }))
  }));
};
const useESP32_S3_MINI_1_N8 = core.createUseComponent(ESP32_S3_MINI_1_N8, pinLabels$1);

function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
const pinLabels = {
  1: ["GND1", "A1"],
  2: ["GND2", "B12"],
  3: ["VBUS1", "A4"],
  4: ["VBUS2", "B9"],
  5: ["SBU2", "B8"],
  6: ["CC1", "A5"],
  7: ["DM2", "B7"],
  8: ["DP1", "A6"],
  9: ["DM1", "A7"],
  10: ["DP2", "B6"],
  11: ["SBU1", "A8"],
  12: ["CC2", "B5"],
  13: ["VBUS1", "A9"],
  14: ["VBUS2", "B4"],
  15: ["GND1", "A12"],
  16: ["GND2", "B1"]
};
/**
 * USB Type C connector (C165948)
 */
const SmdUsbC = props => {
  return /*#__PURE__*/React.createElement("chip", _extends({}, props, {
    cadModel: {
      objUrl: "https://modelcdn.tscircuit.com/easyeda_models/download?uuid=2a4bc2358b36497d9ab2a66ab6419ba3&pn=C165948",
      rotationOffset: {
        x: 0,
        y: 0,
        z: 180
      },
      positionOffset: {
        x: 0,
        y: -2.5,
        z: 0
      }
    },
    pinLabels: pinLabels,
    supplierPartNumbers: {
      jlcpcb: ["C165948"]
    },
    schPortArrangement: {
      leftSide: {
        pins: [],
        direction: "top-to-bottom"
      },
      rightSide: {
        pins: ["VBUS1", "VBUS2", "DP1", "DP2", "DM1", "DM2", "CC1", "CC2", "SBU1", "SBU2"],
        direction: "top-to-bottom"
      },
      bottomSide: {
        pins: ["GND1", "GND2"],
        direction: "left-to-right"
      }
    },
    schPinStyle: {
      pin8: {
        topMargin: 0.4
      },
      pin6: {
        topMargin: 0.4
      },
      pin11: {
        topMargin: 0.2
      },
      pin2: {
        rightMargin: 1
      }
    },
    manufacturerPartNumber: "TYPE-C-31-M-12",
    footprint: /*#__PURE__*/React.createElement("footprint", null, /*#__PURE__*/React.createElement("hole", {
      pcbX: "-2.8999180000000706mm",
      pcbY: "1.180611049999925mm",
      diameter: "0.7500111999999999mm"
    }), /*#__PURE__*/React.createElement("hole", {
      pcbX: "2.8999180000000706mm",
      pcbY: "1.180611049999925mm",
      diameter: "0.7500111999999999mm"
    }), /*#__PURE__*/React.createElement("platedhole", {
      portHints: ["alt_2"],
      pcbX: "4.32511199999999mm",
      pcbY: "-2.7740863499999477mm",
      outerHeight: "1.7999964mm",
      outerWidth: "1.1999975999999999mm",
      innerHeight: "1.3999972mm",
      innerWidth: "0.7999983999999999mm",
      height: "1.3999972mm",
      shape: "pill"
    }), /*#__PURE__*/React.createElement("platedhole", {
      portHints: ["alt_1"],
      pcbX: "4.32511199999999mm",
      pcbY: "1.4057376499998782mm",
      outerHeight: "1.9999959999999999mm",
      outerWidth: "1.1999975999999999mm",
      innerHeight: "1.5999968mm",
      innerWidth: "0.7999983999999999mm",
      height: "1.5999968mm",
      shape: "pill"
    }), /*#__PURE__*/React.createElement("platedhole", {
      portHints: ["alt_0"],
      pcbX: "-4.32511199999999mm",
      pcbY: "1.4057376499998782mm",
      outerHeight: "1.9999959999999999mm",
      outerWidth: "1.1999975999999999mm",
      innerHeight: "1.5999968mm",
      innerWidth: "0.7999983999999999mm",
      height: "1.5999968mm",
      shape: "pill"
    }), /*#__PURE__*/React.createElement("platedhole", {
      portHints: ["alt_3"],
      pcbX: "-4.32511199999999mm",
      pcbY: "-2.7740863499999477mm",
      outerHeight: "1.7999964mm",
      outerWidth: "1.1999975999999999mm",
      innerHeight: "1.3999972mm",
      innerWidth: "0.7999983999999999mm",
      height: "1.3999972mm",
      shape: "pill"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["B8"],
      pcbX: "-1.7500600000000759mm",
      pcbY: "2.449087049999889mm",
      width: "0.29999939999999997mm",
      height: "1.2999973999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["A5"],
      pcbX: "-1.2499339999999393mm",
      pcbY: "2.449087049999889mm",
      width: "0.29999939999999997mm",
      height: "1.2999973999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["B7"],
      pcbX: "-0.7500619999999572mm",
      pcbY: "2.449087049999889mm",
      width: "0.29999939999999997mm",
      height: "1.2999973999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["A6"],
      pcbX: "-0.2499359999999342mm",
      pcbY: "2.449087049999889mm",
      width: "0.29999939999999997mm",
      height: "1.2999973999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["A7"],
      pcbX: "0.2499359999999342mm",
      pcbY: "2.449087049999889mm",
      width: "0.29999939999999997mm",
      height: "1.2999973999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["B6"],
      pcbX: "0.7500619999999572mm",
      pcbY: "2.449087049999889mm",
      width: "0.29999939999999997mm",
      height: "1.2999973999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["A8"],
      pcbX: "1.2496799999998984mm",
      pcbY: "2.449087049999889mm",
      width: "0.29999939999999997mm",
      height: "1.2999973999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["B5"],
      pcbX: "1.7500600000000759mm",
      pcbY: "2.449087049999889mm",
      width: "0.29999939999999997mm",
      height: "1.2999973999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["A1"],
      pcbX: "-3.3500060000000076mm",
      pcbY: "2.449087049999889mm",
      width: "0.29999939999999997mm",
      height: "1.2999973999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["B12"],
      pcbX: "-3.0500319999999874mm",
      pcbY: "2.449087049999889mm",
      width: "0.29999939999999997mm",
      height: "1.2999973999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["A4"],
      pcbX: "-2.5499059999999645mm",
      pcbY: "2.449087049999889mm",
      width: "0.29999939999999997mm",
      height: "1.2999973999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["B9"],
      pcbX: "-2.249932000000058mm",
      pcbY: "2.449087049999889mm",
      width: "0.29999939999999997mm",
      height: "1.2999973999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["B4"],
      pcbX: "2.249932000000058mm",
      pcbY: "2.449087049999889mm",
      width: "0.29999939999999997mm",
      height: "1.2999973999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["A9"],
      pcbX: "2.5501600000000053mm",
      pcbY: "2.449087049999889mm",
      width: "0.29999939999999997mm",
      height: "1.2999973999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["B1"],
      pcbX: "3.050032000000101mm",
      pcbY: "2.449087049999889mm",
      width: "0.29999939999999997mm",
      height: "1.2999973999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("smtpad", {
      portHints: ["A12"],
      pcbX: "3.3500060000000076mm",
      pcbY: "2.449087049999889mm",
      width: "0.29999939999999997mm",
      height: "1.2999973999999999mm",
      shape: "rect"
    }), /*#__PURE__*/React.createElement("silkscreenpath", {
      route: [{
        x: -4.4689776000000165,
        y: -1.40071475000002
      }, {
        x: -4.4689776000000165,
        y: 0.4621974499998487
      }]
    }), /*#__PURE__*/React.createElement("silkscreenpath", {
      route: [{
        x: 4.471009600000116,
        y: -5.119096950000085
      }, {
        x: -4.4689776000000165,
        y: -5.119096950000085
      }, {
        x: -4.4689776000000165,
        y: -3.6377943500000356
      }]
    }), /*#__PURE__*/React.createElement("silkscreenpath", {
      route: [{
        x: 4.471009600000116,
        y: -1.4010703500000545
      }, {
        x: 4.471009600000116,
        y: 0.4625530499999968
      }]
    }), /*#__PURE__*/React.createElement("silkscreenpath", {
      route: [{
        x: 4.471009600000116,
        y: -5.119096950000085
      }, {
        x: 4.471009600000116,
        y: -3.6374387500002285
      }]
    }))
  }));
};
const useUsbC = core.createUseComponent(SmdUsbC, pinLabels);

var index = () => {
  const Usb = useUsbC("USB");
  const Esp32 = useESP32_S3_MINI_1_N8("U1");
  const R1 = core.useResistor("R1", {
    resistance: "5.1k",
    footprint: "0402"
  });
  const R2 = core.useResistor("R2", {
    resistance: "5.1k",
    footprint: "0402"
  });
  return /*#__PURE__*/React.createElement("board", {
    width: "20mm",
    height: "48mm",
    schAutoLayoutEnabled: true
  }, /*#__PURE__*/React.createElement(Usb, {
    pcbY: -20
  }), /*#__PURE__*/React.createElement(Esp32, {
    pcbY: 5
  }), /*#__PURE__*/React.createElement(Reg5vTo3v3, {
    pcbX: 2,
    pcbY: -12
  }), /*#__PURE__*/React.createElement(R1, {
    pcbX: -5,
    pcbY: -15,
    pin1: Usb.CC1,
    pin2: "net.gnd"
  }), /*#__PURE__*/React.createElement(R2, {
    pcbX: -5,
    pcbY: -12,
    pin1: Usb.CC2,
    pin2: "net.gnd"
  }));
};

module.exports = index;