krishnax12/hyprland-macropad

A tscircuit package created by krishnax12.

Version
1.0.7
License
CC-BY-SA-3.0
Stars
0

Use with the tscircuit CLI

tsci is the tscircuit CLI. Install it with npm install -g tscircuit.

tsci clone krishnax12/hyprland-macropad  # download the package files into ./hyprland-macropad
tsci add krishnax12/hyprland-macropad    # add it to your project as @tsci/krishnax12.hyprland-macropad

In 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.cjs

'use strict';

var jsxRuntime = require('react/jsx-runtime');
var core = require('@tscircuit/core');
var BaseModel = require('././assets/base-2a2b3ca30bea-ee718fea.glb');
var IndicatorModel = require('././assets/indicator-0b890ca8133c-09af265f.glb');
var Keycap0Model = require('././assets/keycap-0-b331eefb0e85-2dd97848.glb');
var Keycap1Model = require('././assets/keycap-1-c80badb38617-18fedf32.glb');
var Keycap2Model = require('././assets/keycap-2-4abfbaaf9b74-4da7edfd.glb');
var Keycap3Model = require('././assets/keycap-3-da428b1596e2-1d3350fe.glb');
var Keycap4Model = require('././assets/keycap-4-4f496950ce4a-26c5c6fd.glb');
var Keycap5Model = require('././assets/keycap-5-aee2552b2e2b-9f945048.glb');
var KnobModel = require('././assets/knob-95fe35aee69b-66536084.glb');
var LidModel = require('././assets/lid-463936a84c88-66bbee07.glb');
var Switch0Model = require('././assets/switch-0-a125061440dc-7dc65fd8.glb');
var Switch1Model = require('././assets/switch-1-ec6be9c971f0-6992406c.glb');
var Switch2Model = require('././assets/switch-2-04f6fcc49044-b9f45b07.glb');
var Switch3Model = require('././assets/switch-3-f5eb6d2858c5-d712bc93.glb');
var Switch4Model = require('././assets/switch-4-2175e6b6c12a-db6d21f7.glb');
var Switch5Model = require('././assets/switch-5-aa803690b0d2-48fa90e8.glb');
var react = require('react');
var objPath = require('././assets/RP2040_Zero-363eccb5.obj');
var objPath$1 = require('././assets/PEC11R_4020F_S0024-d3f2cb78.obj');
var stepPath = require('././assets/PEC11R_4020F_S0024-cc2cdcda.step');
var objPath$2 = require('././assets/CPG151101S11_2-d74e6528.obj');
var stepPath$1 = require('././assets/CPG151101S11_2-e7c15375.step');

const MinimalEnclosure = () => (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(core.assembly.part, { name: "minimal-base", displayName: "Minimal base", cadModel: {
                glbUrl: BaseModel,
                modelOriginPosition: { x: 0, y: 0, z: 0 },
            } }), jsxRuntime.jsx(core.assembly.part, { name: "minimal-indicator", displayName: "Minimal indicator", cadModel: {
                glbUrl: IndicatorModel,
                modelOriginPosition: { x: 0, y: 0, z: 0 },
            } }), jsxRuntime.jsx(core.assembly.part, { name: "minimal-keycap-0", displayName: "Minimal keycap-0", cadModel: {
                glbUrl: Keycap0Model,
                modelOriginPosition: { x: 0, y: 0, z: 0 },
            } }), jsxRuntime.jsx(core.assembly.part, { name: "minimal-keycap-1", displayName: "Minimal keycap-1", cadModel: {
                glbUrl: Keycap1Model,
                modelOriginPosition: { x: 0, y: 0, z: 0 },
            } }), jsxRuntime.jsx(core.assembly.part, { name: "minimal-keycap-2", displayName: "Minimal keycap-2", cadModel: {
                glbUrl: Keycap2Model,
                modelOriginPosition: { x: 0, y: 0, z: 0 },
            } }), jsxRuntime.jsx(core.assembly.part, { name: "minimal-keycap-3", displayName: "Minimal keycap-3", cadModel: {
                glbUrl: Keycap3Model,
                modelOriginPosition: { x: 0, y: 0, z: 0 },
            } }), jsxRuntime.jsx(core.assembly.part, { name: "minimal-keycap-4", displayName: "Minimal keycap-4", cadModel: {
                glbUrl: Keycap4Model,
                modelOriginPosition: { x: 0, y: 0, z: 0 },
            } }), jsxRuntime.jsx(core.assembly.part, { name: "minimal-keycap-5", displayName: "Minimal keycap-5", cadModel: {
                glbUrl: Keycap5Model,
                modelOriginPosition: { x: 0, y: 0, z: 0 },
            } }), jsxRuntime.jsx(core.assembly.part, { name: "minimal-knob", displayName: "Minimal knob", cadModel: {
                glbUrl: KnobModel,
                modelOriginPosition: { x: 0, y: 0, z: 0 },
            } }), jsxRuntime.jsx(core.assembly.part, { name: "minimal-lid", displayName: "Minimal lid", cadModel: {
                glbUrl: LidModel,
                modelOriginPosition: { x: 0, y: 0, z: 0 },
            } }), jsxRuntime.jsx(core.assembly.part, { name: "minimal-switch-0", displayName: "Minimal switch-0", cadModel: {
                glbUrl: Switch0Model,
                modelOriginPosition: { x: 0, y: 0, z: 0 },
            } }), jsxRuntime.jsx(core.assembly.part, { name: "minimal-switch-1", displayName: "Minimal switch-1", cadModel: {
                glbUrl: Switch1Model,
                modelOriginPosition: { x: 0, y: 0, z: 0 },
            } }), jsxRuntime.jsx(core.assembly.part, { name: "minimal-switch-2", displayName: "Minimal switch-2", cadModel: {
                glbUrl: Switch2Model,
                modelOriginPosition: { x: 0, y: 0, z: 0 },
            } }), jsxRuntime.jsx(core.assembly.part, { name: "minimal-switch-3", displayName: "Minimal switch-3", cadModel: {
                glbUrl: Switch3Model,
                modelOriginPosition: { x: 0, y: 0, z: 0 },
            } }), jsxRuntime.jsx(core.assembly.part, { name: "minimal-switch-4", displayName: "Minimal switch-4", cadModel: {
                glbUrl: Switch4Model,
                modelOriginPosition: { x: 0, y: 0, z: 0 },
            } }), jsxRuntime.jsx(core.assembly.part, { name: "minimal-switch-5", displayName: "Minimal switch-5", cadModel: {
                glbUrl: Switch5Model,
                modelOriginPosition: { x: 0, y: 0, z: 0 },
            } })] }));

var U1 = {
	x: 0,
	y: 0
};
var ENC1 = {
	x: 6,
	y: 0
};
var J1 = {
	x: -9,
	y: 1.5
};
var J2 = {
	x: -7,
	y: 1.5
};
var J3 = {
	x: -5,
	y: 1.5
};
var J4 = {
	x: -11,
	y: -1.5
};
var J5 = {
	x: -9,
	y: -1.5
};
var J6 = {
	x: -7,
	y: -1.5
};
var schematicLayout = {
	U1: U1,
	ENC1: ENC1,
	J1: J1,
	J2: J2,
	J3: J3,
	J4: J4,
	J5: J5,
	J6: J6
};

const pinLabels$2 = {
    pin1: ["GP0"],
    pin2: ["GP1"],
    pin3: ["GP2"],
    pin4: ["GP3"],
    pin5: ["GP4"],
    pin6: ["GP5"],
    pin7: ["GP6"],
    pin8: ["GP7"],
    pin9: ["GP8"],
    pin10: ["GP9"],
    pin11: ["GP10"],
    pin12: ["GP11"],
    pin13: ["GP12"],
    pin14: ["GP13"],
    pin15: ["GP14"],
    pin16: ["GP15"],
    pin17: ["GP26"],
    pin18: ["GP27"],
    pin19: ["GP28"],
    pin20: ["GP29"],
    pin21: ["3V3"],
    pin22: ["GND"],
    pin23: ["5V"],
    pin24: ["pin24"],
    pin25: ["pin25"],
    pin26: ["pin26"],
    pin27: ["pin27"],
    pin28: ["pin28"],
    pin29: ["pin29"],
    pin30: ["pin30"],
    pin31: ["pin31"],
    pin32: ["pin32"],
    pin33: ["pin33"],
};
const RP2040_Zero = (props) => {
    return (jsxRuntime.jsx("chip", { pinLabels: pinLabels$2, pinAttributes: {
            pin22: { providesGround: true, requiresGround: true },
            pin23: { requiresPower: true, requiresVoltage: 5 },
            ...Object.fromEntries(Array.from({ length: 9 }, (_, i) => [
                `pin${i + 3}`,
                {
                    isInput: true,
                    canUseInternalPullup: true,
                    isUsingInternalPullup: true,
                },
            ])),
        }, supplierPartNumbers: {
            lcsc: ["C5350143"],
        }, manufacturerPartNumber: "RP2040-Zero", footprint: jsxRuntime.jsxs("footprint", { children: [jsxRuntime.jsx("keepout", { shape: "rect", width: 14.6, height: 18.6, pcbX: 0, pcbY: 0, layers: ["top", "bottom"], allowPlacements: true }), jsxRuntime.jsx("cutout", { name: "MODULE_UNDERSIDE_CLEARANCE", shape: "rect", width: 14, height: 18, pcbX: 0, pcbY: 0 }), jsxRuntime.jsx("smtpad", { portHints: ["pin1"], pcbX: "8.499983mm", pcbY: "10.9049566mm", width: "1.999996mm", height: "1.1999976mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin2"], pcbX: "8.499983mm", pcbY: "8.3649566mm", width: "1.999996mm", height: "1.1999976mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin3"], pcbX: "8.499983mm", pcbY: "5.8249566mm", width: "1.999996mm", height: "1.1999976mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin4"], pcbX: "8.499983mm", pcbY: "3.2849566mm", width: "1.999996mm", height: "1.1999976mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin5"], pcbX: "8.499983mm", pcbY: "0.7449566mm", width: "1.999996mm", height: "1.1999976mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin6"], pcbX: "8.499983mm", pcbY: "-1.7950434mm", width: "1.999996mm", height: "1.1999976mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin7"], pcbX: "8.499983mm", pcbY: "-4.3350434mm", width: "1.999996mm", height: "1.1999976mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin8"], pcbX: "8.499983mm", pcbY: "-6.8750434mm", width: "1.999996mm", height: "1.1999976mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin9"], pcbX: "8.499983mm", pcbY: "-9.4150434mm", width: "1.999996mm", height: "1.1999976mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin10"], pcbX: "5.079873mm", pcbY: "-10.5049574mm", width: "1.1999976mm", height: "1.999996mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin11"], pcbX: "2.539873mm", pcbY: "-10.5049574mm", width: "1.1999976mm", height: "1.999996mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin12"], pcbX: "-0.000127mm", pcbY: "-10.5049574mm", width: "1.1999976mm", height: "1.999996mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin13"], pcbX: "-2.540127mm", pcbY: "-10.5049574mm", width: "1.1999976mm", height: "1.999996mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin14"], pcbX: "-5.080127mm", pcbY: "-10.5049574mm", width: "1.1999976mm", height: "1.999996mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin15"], pcbX: "-8.499983mm", pcbY: "-9.4150434mm", width: "1.999996mm", height: "1.1999976mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin16"], pcbX: "-8.499983mm", pcbY: "-6.8750434mm", width: "1.999996mm", height: "1.1999976mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin17"], pcbX: "-8.499983mm", pcbY: "-4.3350434mm", width: "1.999996mm", height: "1.1999976mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin18"], pcbX: "-8.499983mm", pcbY: "-1.7950434mm", width: "1.999996mm", height: "1.1999976mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin19"], pcbX: "-8.499983mm", pcbY: "0.7449566mm", width: "1.999996mm", height: "1.1999976mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin20"], pcbX: "-8.499983mm", pcbY: "3.2849566mm", width: "1.999996mm", height: "1.1999976mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin21"], pcbX: "-8.499983mm", pcbY: "5.8249566mm", width: "1.999996mm", height: "1.1999976mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin22"], pcbX: "-8.499983mm", pcbY: "8.3649566mm", width: "1.999996mm", height: "1.1999976mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin23"], pcbX: "-8.499983mm", pcbY: "10.9049566mm", width: "1.999996mm", height: "1.1999976mm", shape: "rect" }), jsxRuntime.jsx("silkscreenpath", { route: [
                        { x: 4.481322000000091, y: 12.499924200000123 },
                        { x: 4.481322000000091, y: 13.99992120000013 },
                        { x: -4.47974720000002, y: 13.99992120000013 },
                    ] }), jsxRuntime.jsx("silkscreenpath", { route: [
                        { x: -4.47974720000002, y: 12.499924200000123 },
                        { x: -4.47974720000002, y: 13.99992120000013 },
                    ] }), jsxRuntime.jsx("silkscreenpath", { route: [
                        { x: -5.911240399999997, y: -11.000028799999882 },
                        { x: -9.000058200000012, y: -11.000028799999882 },
                    ] }), jsxRuntime.jsx("silkscreenpath", { route: [
                        { x: -3.3712404000000333, y: -11.000028799999882 },
                        { x: -4.248962799999958, y: -11.000028799999882 },
                    ] }), jsxRuntime.jsx("silkscreenpath", { route: [
                        { x: -0.831240399999956, y: -11.000028799999882 },
                        { x: -1.708962799999881, y: -11.000028799999882 },
                    ] }), jsxRuntime.jsx("silkscreenpath", { route: [
                        { x: 1.7087342000000945, y: -11.000028799999882 },
                        { x: 0.8310372000000825, y: -11.000028799999882 },
                    ] }), jsxRuntime.jsx("silkscreenpath", { route: [
                        { x: 4.248734200000172, y: -11.000028799999882 },
                        { x: 3.371011800000133, y: -11.000028799999882 },
                    ] }), jsxRuntime.jsx("silkscreenpath", { route: [
                        { x: 8.999905800000079, y: -10.24615679999988 },
                        { x: 8.999905800000079, y: -11.000028799999882 },
                        { x: 5.911011799999983, y: -11.000028799999882 },
                    ] }), jsxRuntime.jsx("silkscreenpath", { route: [
                        { x: 8.999905800000079, y: -7.70618219999983 },
                        { x: 8.999905800000079, y: -8.583879199999728 },
                    ] }), jsxRuntime.jsx("silkscreenpath", { route: [
                        { x: 8.999905800000079, y: -5.166182199999753 },
                        { x: 8.999905800000079, y: -6.043904599999905 },
                    ] }), jsxRuntime.jsx("silkscreenpath", { route: [
                        { x: 8.999905800000079, y: -2.626182199999903 },
                        { x: 8.999905800000079, y: -3.5039045999999416 },
                    ] }), jsxRuntime.jsx("silkscreenpath", { route: [
                        { x: 8.999905800000079, y: -0.08618219999982557 },
                        { x: 8.999905800000079, y: -0.9639045999998643 },
                    ] }), jsxRuntime.jsx("silkscreenpath", { route: [
                        { x: 8.999905800000079, y: 2.4538178000002517 },
                        { x: 8.999905800000079, y: 1.576095400000213 },
                    ] }), jsxRuntime.jsx("silkscreenpath", { route: [
                        { x: 8.999905800000079, y: 4.9937924000001885 },
                        { x: 8.999905800000079, y: 4.116095400000063 },
                    ] }), jsxRuntime.jsx("silkscreenpath", { route: [
                        { x: 8.999905800000079, y: 7.5337924000000385 },
                        { x: 8.999905800000079, y: 6.656070000000113 },
                    ] }), jsxRuntime.jsx("silkscreenpath", { route: [
                        { x: 8.999905800000079, y: 10.073792400000116 },
                        { x: 8.999905800000079, y: 9.19607000000019 },
                    ] }), jsxRuntime.jsx("silkscreenpath", { route: [
                        { x: -9.000058200000012, y: 11.736095400000067 },
                        { x: -9.000058200000012, y: 12.499924200000123 },
                        { x: 8.999905800000079, y: 12.499924200000123 },
                        { x: 8.999905800000079, y: 11.736070000000268 },
                    ] }), jsxRuntime.jsx("silkscreenpath", { route: [
                        { x: -9.000058200000012, y: 9.196095400000104 },
                        { x: -9.000058200000012, y: 10.073817800000256 },
                    ] }), jsxRuntime.jsx("silkscreenpath", { route: [
                        { x: -9.000058200000012, y: 6.65609540000014 },
                        { x: -9.000058200000012, y: 7.533817800000179 },
                    ] }), jsxRuntime.jsx("silkscreenpath", { route: [
                        { x: -9.000058200000012, y: 4.116120800000203 },
                        { x: -9.000058200000012, y: 4.993817800000102 },
                    ] }), jsxRuntime.jsx("silkscreenpath", { route: [
                        { x: -9.000058200000012, y: 1.576120800000126 },
                        { x: -9.000058200000012, y: 2.453843200000051 },
                    ] }), jsxRuntime.jsx("silkscreenpath", { route: [
                        { x: -9.000058200000012, y: -0.9638791999998375 },
                        { x: -9.000058200000012, y: -0.08615679999979875 },
                    ] }), jsxRuntime.jsx("silkscreenpath", { route: [
                        { x: -9.000058200000012, y: -3.503879199999801 },
                        { x: -9.000058200000012, y: -2.626156799999876 },
                    ] }), jsxRuntime.jsx("silkscreenpath", { route: [
                        { x: -9.000058200000012, y: -6.043879199999878 },
                        { x: -9.000058200000012, y: -5.166156799999953 },
                    ] }), jsxRuntime.jsx("silkscreenpath", { route: [
                        { x: -9.000058200000012, y: -8.583853799999929 },
                        { x: -9.000058200000012, y: -7.706156799999917 },
                    ] }), jsxRuntime.jsx("silkscreenpath", { route: [
                        { x: -9.000058200000012, y: -11.000028799999882 },
                        { x: -9.000058200000012, y: -10.24613139999974 },
                    ] }), jsxRuntime.jsx("silkscreentext", { text: "{NAME}", pcbX: "-0.000127mm", pcbY: "15.0291566mm", anchorAlignment: "center", fontSize: "1mm" }), jsxRuntime.jsx("fabricationnotepath", { route: [
                        { x: -4.400067400000012, y: 12.499924200000123 },
                        { x: -4.400067400000012, y: 13.99992120000013 },
                        { x: 4.3999149999999645, y: 13.99992120000013 },
                        { x: 4.3999149999999645, y: 12.499924200000123 },
                        { x: -4.400067400000012, y: 12.499924200000123 },
                    ], strokeWidth: "0.254mm" }), jsxRuntime.jsx("courtyardoutline", { outline: [
                        { x: -9.749727000000007, y: 14.279156600000306 },
                        { x: 9.74947300000008, y: 14.279156600000306 },
                        { x: 9.74947300000008, y: -11.747843399999738 },
                        { x: -9.749727000000007, y: -11.747843399999738 },
                        { x: -9.749727000000007, y: 14.279156600000306 },
                    ] })] }), cadModel: {
            objUrl: objPath,
            modelOriginPosition: { x: 8.94996, y: 11.09155, z: -1.09144 },
        }, ...props }));
};

const pinLabels$1 = {
    pin1: ["A"],
    pin2: ["C"],
    pin3: ["B"],
    pin4: ["pin4"],
    pin5: ["pin5"],
    pin7: ["pin7"],
    pin8: ["pin8"],
};
const PEC11R_4020F_S0024 = (props) => {
    return (jsxRuntime.jsx("chip", { pinLabels: pinLabels$1, pinAttributes: {
            A: { isPassive: true },
            B: { isPassive: true },
            C: { isPassive: true, requiresGround: true },
            pin4: { isPassive: true },
            pin5: { isPassive: true },
        }, supplierPartNumbers: {
            lcsc: ["C143788"],
        }, manufacturerPartNumber: "PEC11R-4020F-S0024", footprint: jsxRuntime.jsxs("footprint", { children: [jsxRuntime.jsx("platedhole", { portHints: ["pin4"], pcbX: "-2.499995mm", pcbY: "7.249922mm", outerDiameter: "1.7999964mm", holeDiameter: "1.1999976mm", shape: "circle" }), jsxRuntime.jsx("platedhole", { portHints: ["pin5"], pcbX: "2.499995mm", pcbY: "7.249922mm", outerDiameter: "1.7999964mm", holeDiameter: "1.1999976mm", shape: "circle" }), jsxRuntime.jsx("platedhole", { portHints: ["pin1"], pcbX: "-2.499995mm", pcbY: "-7.249922mm", outerDiameter: "1.7999964mm", holeDiameter: "1.1999976mm", shape: "circle" }), jsxRuntime.jsx("platedhole", { portHints: ["pin2"], pcbX: "-0.000127mm", pcbY: "-7.249922mm", outerDiameter: "1.7999964mm", holeDiameter: "1.1999976mm", shape: "circle" }), jsxRuntime.jsx("platedhole", { portHints: ["pin3"], pcbX: "2.499995mm", pcbY: "-7.249922mm", outerDiameter: "1.7999964mm", holeDiameter: "1.1999976mm", shape: "circle" }), jsxRuntime.jsx("platedhole", { portHints: ["pin7"], pcbX: "-5.700141mm", pcbY: "0.249936mm", holeWidth: "1.3999972mm", holeHeight: "2.7999944mm", outerWidth: "2.3999952mm", outerHeight: "3.7999924mm", shape: "pill" }), jsxRuntime.jsx("platedhole", { portHints: ["pin8"], pcbX: "5.699887mm", pcbY: "0.249936mm", holeWidth: "1.3999972mm", holeHeight: "2.7999944mm", outerWidth: "2.3999952mm", outerHeight: "3.7999924mm", shape: "pill" }), jsxRuntime.jsx("silkscreenpath", { route: [
                        { x: 1.269873000000075, y: -1.0200386000000208 },
                        { x: -1.2701269999997749, y: -1.0200386000000208 },
                    ] }), jsxRuntime.jsx("silkscreenpath", { route: [
                        { x: 1.269873000000075, y: -1.0200386000000208 },
                        { x: 1.4331547052285032, y: -0.8324007817582242 },
                        { x: 1.56894719643617, y: -0.6240038877592724 },
                        { x: 1.674646080614366, y: -0.39884480626278673 },
                        { x: 1.748224136429826, y: -0.1612419110799692 },
                        { x: 1.7882701947341957, y: 0.08424776143419876 },
                        { x: 1.7940162036759375, y: 0.3329159127483763 },
                        { x: 1.7653519593302462, y: 0.5799932836121116 },
                        { x: 1.702827219322785, y: 0.8207411246903575 },
                        { x: 1.6076411589122017, y: 1.0505420820433073 },
                        { x: 1.4816193717535953, y: 1.2649887543377645 },
                        { x: 1.327178856449109, y: 1.4599682233319982 },
                        { x: 1.1472816604197078, y: 1.6317409364082778 },
                        { x: 0.9453780701689993, y: 1.7770124282458255 },
                        { x: 0.72534043750602, y: 1.8929965060708582 },
                        { x: 0.491388910887963, y: 1.9774686866386446 },
                        { x: 0.24801049629684258, y: 2.028808860069603 },
                        { x: -12699999979304266e-20, y: 2.046032362281494 },
                        { x: -0.24826449629642866, y: 2.028808860069603 },
                        { x: -0.49164291088777645, y: 1.9774686866386446 },
                        { x: -0.7255944375058334, y: 1.8929965060708582 },
                        { x: -0.9456320701688128, y: 1.7770124282458255 },
                        { x: -1.147535660419294, y: 1.6317409364082778 },
                        { x: -1.327432856448695, y: 1.4599682233319982 },
                        { x: -1.481873371753295, y: 1.2649887543377645 },
                        { x: -1.6078951589120152, y: 1.0505420820433073 },
                        { x: -1.703081219322371, y: 0.8207411246903575 },
                        { x: -1.765605959329946, y: 0.5799932836121116 },
                        { x: -1.794270203675751, y: 0.3329159127483763 },
                        { x: -1.7885241947338955, y: 0.08424776143419876 },
                        { x: -1.7484781364294122, y: -0.1612419110799692 },
                        { x: -1.6749000806140657, y: -0.39884480626278673 },
                        { x: -1.5692011964358699, y: -0.6240038877592724 },
                        { x: -1.433408705228203, y: -0.8324007817582242 },
                        { x: -1.2701269999997749, y: -1.0200386000000208 },
                    ] }), jsxRuntime.jsx("silkscreencircle", { pcbX: "-0.000127mm", pcbY: "0.249936mm", radius: "2.999994mm" }), jsxRuntime.jsx("silkscreenrect", { pcbX: "0mm", pcbY: "0.249936mm", width: "12.500102mm", height: "13.400024mm", strokeWidth: "0.254mm" }), jsxRuntime.jsx("silkscreentext", { text: "{NAME}", pcbX: "-0.025527mm", pcbY: "9.210042mm", anchorAlignment: "center", fontSize: "1mm" }), jsxRuntime.jsx("courtyardoutline", { outline: [
                        { x: -7.184326999999939, y: 8.46004199999993 },
                        { x: 7.133273000000145, y: 8.46004199999993 },
                        { x: 7.133273000000145, y: -8.448357999999985 },
                        { x: -7.184326999999939, y: -8.448357999999985 },
                        { x: -7.184326999999939, y: 8.46004199999993 },
                    ] })] }), cadModel: {
            objUrl: objPath$1,
            stepUrl: stepPath,
            pcbRotationOffset: 0,
            modelOriginPosition: {
                x: 0.00012699999979304266,
                y: -0.25001270000007025,
                z: -5.600007199999999,
            },
        }, ...props }));
};

const pinLabels = {
    pin1: ["pin1"],
    pin2: ["pin2"],
};
const CPG151101S11_2 = (props) => {
    return (jsxRuntime.jsx("connector", { pinLabels: pinLabels, symbol: jsxRuntime.jsxs("symbol", { children: [jsxRuntime.jsx("schematictext", { text: props.name, schY: 0.6, fontSize: 0.2 }), jsxRuntime.jsx("port", { name: "pin1", pinNumber: 1, aliases: ["1"], direction: "left", schX: -0.5, schY: 0, schStemLength: 0.2 }), jsxRuntime.jsx("port", { name: "pin2", pinNumber: 2, aliases: ["2"], direction: "right", schX: 0.5, schY: 0, schStemLength: 0.2 }), jsxRuntime.jsx("schematicpath", { svgPath: "M -0.1 0 A 0.06 0.06 0 1 1 -0.1 -0.0002", strokeColor: "#880000" }), jsxRuntime.jsx("schematicpath", { svgPath: "M 0.2 0 A 0.06 0.06 0 1 1 0.2 -0.0002", strokeColor: "#880000" }), jsxRuntime.jsx("schematicpath", { points: [
                        { x: -0.3, y: 0 },
                        { x: -0.22, y: 0 },
                    ], strokeColor: "#880000" }), jsxRuntime.jsx("schematicpath", { points: [
                        { x: -0.2, y: 0.2 },
                        { x: 0.2, y: 0.2 },
                    ], strokeColor: "#880000" }), jsxRuntime.jsx("schematicpath", { points: [
                        { x: 0, y: 0.2 },
                        { x: 0, y: 0.3 },
                    ], strokeColor: "#880000" }), jsxRuntime.jsx("schematicpath", { points: [
                        { x: 0.2, y: 0 },
                        { x: 0.3, y: 0 },
                    ], strokeColor: "#880000" })] }), supplierPartNumbers: {
            lcsc: ["C49352235"],
        }, manufacturerPartNumber: "CPG151101S11-2", footprint: jsxRuntime.jsxs("footprint", { insertionDirection: "from_below", children: [jsxRuntime.jsx("hole", { diameter: 3.9, pcbX: 0.635, pcbY: 3.81 }), jsxRuntime.jsx("hole", { diameter: 1.8135, pcbX: -4.445, pcbY: 3.81 }), jsxRuntime.jsx("hole", { diameter: 1.8135, pcbX: 5.715, pcbY: 3.81 }), jsxRuntime.jsx("hole", { pcbX: "3.175mm", pcbY: "-1.27mm", diameter: "2.999994mm" }), jsxRuntime.jsx("hole", { pcbX: "-3.175mm", pcbY: "1.27mm", diameter: "2.999994mm" }), jsxRuntime.jsx("smtpad", { portHints: ["pin2"], pcbX: "6.724904mm", pcbY: "-1.27mm", width: "2.8999942mm", height: "2.499995mm", shape: "rect" }), jsxRuntime.jsx("smtpad", { portHints: ["pin1"], pcbX: "-6.724904mm", pcbY: "1.27mm", width: "2.8999942mm", height: "2.499995mm", shape: "rect" }), jsxRuntime.jsx("silkscreenpath", { route: [
                        { x: -5.461000000000013, y: -0.4611370000000079 },
                        { x: -5.461000000000013, y: -2.9209999999999354 },
                        { x: -5.461000000000013, y: -2.9209999999999354 },
                    ] }), jsxRuntime.jsx("silkscreenpath", { route: [
                        { x: 5.4500017999999955, y: -2.950006799999869 },
                        { x: -5.461000000000013, y: -2.950006799999869 },
                    ] }), jsxRuntime.jsx("silkscreenpath", { route: [
                        { x: 0.18298159999994823, y: 1.0549889999999778 },
                        { x: 5.450027199999909, y: 1.0549889999999778 },
                    ] }), jsxRuntime.jsx("silkscreenpath", { route: [
                        { x: 5.450027199999909, y: 1.0549889999999778 },
                        { x: 5.450027199999909, y: 0.4611370000000079 },
                    ] }), jsxRuntime.jsx("silkscreenpath", { route: [
                        { x: -2.944114000000127, y: 2.9450030000000424 },
                        { x: -5.461000000000013, y: 2.9450030000000424 },
                    ] }), jsxRuntime.jsx("silkscreenpath", { route: [
                        { x: -1.707006999999976, y: 2.9450030000000424 },
                        { x: -2.944114000000127, y: 2.9450030000000424 },
                    ] }), jsxRuntime.jsx("silkscreenpath", { route: [
                        { x: -1.7070069999998623, y: 2.9450030000000424 },
                        { x: -1.6908409246365181, y: 2.6983076688486562 },
                        { x: -1.6426126785172528, y: 2.455833000726443 },
                        { x: -1.5631474744046727, y: 2.221727875323495 },
                        { x: -1.453805007206256, y: 1.9999979646854626 },
                        { x: -1.3164561888188473, y: 1.7944371938847326 },
                        { x: -1.153451135761543, y: 1.6085628248006287 },
                        { x: -0.9675789573427664, y: 1.445555273765649 },
                        { x: -0.7620200324109874, y: 1.3082036928298066 },
                        { x: -0.5402915912621893, y: 1.1988582457809116 },
                        { x: -0.3061875338247546, y: 1.1193898955031045 },
                        { x: -0.06371351387110735, y: 1.0711583907361728 },
                        { x: 0.18298159999994823, y: 1.054988999999864 },
                    ] }), jsxRuntime.jsx("silkscreentext", { text: "{NAME}", pcbX: "0mm", pcbY: "4.0226mm", anchorAlignment: "center", fontSize: "1mm" }), jsxRuntime.jsx("fabricationnotepath", { route: [
                        { x: -5.400014600000077, y: -0.09999979999997777 },
                        { x: -5.400014600000077, y: -1.0999977999999828 },
                        { x: -5.384615381271374, y: -1.3349444761017821 },
                        { x: -5.338681209987271, y: -1.5658711494360205 },
                        { x: -5.262998032554037, y: -1.788826600596849 },
                        { x: -5.158860809120597, y: -1.9999959999998964 },
                        { x: -5.028051356452238, y: -2.195766180674468 },
                        { x: -4.872807860551461, y: -2.3727874605514216 },
                        { x: -4.695786580674508, y: -2.5280309564521986 },
                        { x: -4.500016399999936, y: -2.658840409120444 },
                        { x: -4.288847000596775, y: -2.762977632553998 },
                        { x: -4.06589154943606, y: -2.838660809987232 },
                        { x: -3.8349648761018216, y: -2.8845949812713343 },
                        { x: -3.6000182000000223, y: -2.8999942000000374 },
                        { x: -3.4999930000000177, y: -2.8999942000000374 },
                        { x: -3.1999935999999707, y: -2.8999942000000374 },
                        { x: 5.400014599999963, y: -2.8999942000000374 },
                        { x: 5.400014599999963, y: -2.699994599999968 },
                        { x: -3.4999930000000177, y: -2.699994599999968 },
                        { x: -3.6000182000000223, y: -2.699994599999968 },
                        { x: -3.850312843474171, y: -2.6802959843495273 },
                        { x: -4.094444402145655, y: -2.621685182691408 },
                        { x: -4.326401546813713, y: -2.525605387480482 },
                        { x: -4.540472722755112, y: -2.3944224021454374 },
                        { x: -4.731386787156907, y: -2.231366387156754 },
                        { x: -4.894442802145591, y: -2.0404523227550726 },
                        { x: -5.0256257874805215, y: -1.82638114681356 },
                        { x: -5.121705582691561, y: -1.5944240021456153 },
                        { x: -5.180316384349567, y: -1.3502924434741317 },
                        { x: -5.200015000000008, y: -1.0999977999999828 },
                        { x: -5.200015000000008, y: -0.09999979999997777 },
                        { x: -5.400014600000077, y: -0.09999979999997777 },
                    ], strokeWidth: "0.254mm" }), jsxRuntime.jsx("fabricationnotepath", { route: [
                        { x: 5.400014599999963, y: 0.39999920000002476 },
                        { x: 5.400014599999963, y: 0.4999736000000894 },
                        { x: 5.361952508916033, y: 0.6913246536583983 },
                        { x: 5.253560843998571, y: 0.8535442439988401 },
                        { x: 5.091341253658356, y: 0.9619359089163027 },
                        { x: 4.899990199999934, y: 0.999998000000005 },
                        { x: 0.19999960000006922, y: 0.999998000000005 },
                        { x: 0, y: 0.999998000000005 },
                        { x: -0.2349466761017993, y: 1.0153972187287081 },
                        { x: -0.46587334943603764, y: 1.0613313900125831 },
                        { x: -0.6888288005969798, y: 1.1370145674459309 },
                        { x: -0.899998200000141, y: 1.241151790879485 },
                        { x: -1.0957683806747127, y: 1.3719612435478439 },
                        { x: -1.2727896605514388, y: 1.5272047394486208 },
                        { x: -1.4280331564522157, y: 1.7042260193254606 },
                        { x: -1.5588426091206884, y: 1.8999961999999186 },
                        { x: -1.6629798325542424, y: 2.1111655994031935 },
                        { x: -1.7386630099874765, y: 2.334121050564022 },
                        { x: -1.7845971812714652, y: 2.5650477238982603 },
                        { x: -1.799996400000282, y: 2.7999944000000596 },
                        { x: -1.7999964000000546, y: 2.999994000000015 },
                        { x: -5.400014600000077, y: 2.999994000000015 },
                        { x: -5.400014600000077, y: 2.7999944000000596 },
                        { x: -1.99999600000001, y: 2.7999944000000596 },
                        { x: -1.99999600000001, y: 2.5999947999999904 },
                        { x: -1.984596781271307, y: 2.365048123898191 },
                        { x: -1.9386626099873183, y: 2.1341214505640664 },
                        { x: -1.8629794325539706, y: 1.9111659994033516 },
                        { x: -1.7588422091205302, y: 1.6999966000000768 },
                        { x: -1.6280327564521713, y: 1.5042264193256187 },
                        { x: -1.4727892605513944, y: 1.3272051394486652 },
                        { x: -1.2957679806744409, y: 1.1719616435477747 },
                        { x: -1.0999978000000965, y: 1.0411521908795294 },
                        { x: -0.8888284005968217, y: 0.937014967446089 },
                        { x: -0.6658729494358795, y: 0.861331790012855 },
                        { x: -0.43494627610186853, y: 0.8153976187287526 },
                        { x: -0.1999996000001829, y: 0.7999984000000495 },
                        { x: 4.800015799999983, y: 0.7999984000000495 },
                        { x: 5.000015400000052, y: 0.7464086686935616 },
                        { x: 5.146425268693292, y: 0.5999987999999803 },
                        { x: 5.20001499999978, y: 0.39999920000002476 },
                        { x: 5.400014599999963, y: 0.39999920000002476 },
                    ], strokeWidth: "0.254mm" }), jsxRuntime.jsx("courtyardoutline", { outline: [
                        { x: -8.42879999999991, y: 3.2726000000000113 },
                        { x: 8.42879999999991, y: 3.2726000000000113 },
                        { x: 8.42879999999991, y: -3.2725999999998976 },
                        { x: -8.42879999999991, y: -3.2725999999998976 },
                        { x: -8.42879999999991, y: 3.2726000000000113 },
                    ] })] }), cadModel: {
            objUrl: objPath$2,
            stepUrl: stepPath$1,
            pcbRotationOffset: 0,
            modelOriginPosition: {
                x: -12699999956566899e-21,
                y: 0,
                z: -0.05000240000000011,
            },
        }, ...props }));
};

const keys = [
    { name: "J1", gpio: "GP2", x: -19.05, y: 0, label: "TERM" },
    { name: "J2", gpio: "GP3", x: 0, y: 0, label: "APPS" },
    { name: "J3", gpio: "GP4", x: 19.05, y: 0, label: "SHOT" },
    { name: "J4", gpio: "GP5", x: -19.05, y: -19.05, label: "FLOAT" },
    { name: "J5", gpio: "GP6", x: 0, y: -19.05, label: "PREV" },
    { name: "J6", gpio: "GP7", x: 19.05, y: -19.05, label: "NEXT" },
];
var index_circuit = () => (jsxRuntime.jsxs("board", { width: 70, height: 88, schLayout: { layoutMode: "relative" }, autorouter: { preset: "auto_local", traceClearance: 0.3 }, children: [jsxRuntime.jsxs("schematicsheet", { name: "Hyprpad", children: [jsxRuntime.jsx("schematicsection", { name: "controller", displayName: "USB-C controller" }), jsxRuntime.jsx("schematicsection", { name: "keys", displayName: "Six macro keys" }), jsxRuntime.jsx("schematicsection", { name: "encoder", displayName: "Volume encoder" }), jsxRuntime.jsx(RP2040_Zero, { name: "U1", schX: 0, schY: 0, schSectionName: "controller", schWidth: 1.9, schMarginX: 3, schMarginY: 2, pcbX: -16, pcbY: 27, connections: { GND: "net.GND" }, noConnect: [
                        "GP0",
                        "GP1",
                        "GP11",
                        "GP12",
                        "GP13",
                        "GP14",
                        "GP15",
                        "GP26",
                        "GP27",
                        "GP28",
                        "GP29",
                        "3V3",
                        "5V",
                        "pin24",
                        "pin25",
                        "pin26",
                        "pin27",
                        "pin28",
                        "pin29",
                        "pin30",
                        "pin31",
                        "pin32",
                        "pin33",
                    ] }), jsxRuntime.jsx(PEC11R_4020F_S0024, { name: "ENC1", schX: 6, schY: 0, schSectionName: "encoder", schWidth: 1.6, schMarginX: 3, schMarginY: 2, pcbX: 19.05, pcbY: 25, connections: { C: "net.GND", pin5: "net.GND" }, noConnect: ["pin7", "pin8"] }), jsxRuntime.jsx("trace", { name: "ENC_A", from: ".ENC1 > .A", to: ".U1 > .GP8" }), jsxRuntime.jsx("trace", { name: "ENC_B", from: ".ENC1 > .B", to: ".U1 > .GP9" }), jsxRuntime.jsx("trace", { name: "ENC_SW", from: ".ENC1 > .pin4", to: ".U1 > .GP10" }), jsxRuntime.jsx("schematictext", { text: "RP2040-Zero: USB-powered, 3.3 V GPIO", schX: 0, schY: 7, fontSize: 0.25 }), jsxRuntime.jsx("schematictext", { text: "Keys and encoder use internal pull-ups", schX: 0, schY: 6.5, fontSize: 0.25 }), keys.map(({ name, gpio, x, y, label }) => (jsxRuntime.jsxs(react.Fragment, { children: [jsxRuntime.jsx(CPG151101S11_2, { name: name, schX: schematicLayout[name].x, schY: schematicLayout[name].y, schSectionName: "keys", schRotation: 270, schMarginX: 2, schMarginY: 1, pcbX: x + 0.635, pcbY: y - 3.81, layer: "bottom", connections: { pin2: "net.GND" }, pinAttributes: {
                                pin1: { isPassive: true },
                                pin2: { isPassive: true },
                            } }), jsxRuntime.jsx("trace", { name: `KEY${name.slice(1)}`, from: `.${name} > .pin1`, to: `.U1 > .${gpio}` }), jsxRuntime.jsx("silkscreentext", { text: label, pcbX: x, pcbY: y - 8, fontSize: 1 })] }, name))), jsxRuntime.jsx("hole", { name: "H1", diameter: 3.2, pcbX: -30, pcbY: 38 }), jsxRuntime.jsx("hole", { name: "H2", diameter: 3.2, pcbX: 30, pcbY: 38 }), jsxRuntime.jsx("hole", { name: "H3", diameter: 3.2, pcbX: -30, pcbY: -30 }), jsxRuntime.jsx("hole", { name: "H4", diameter: 3.2, pcbX: 30, pcbY: -30 }), jsxRuntime.jsx("silkscreentext", { text: "HYPRPAD / KRISHNAX12", pcbX: 0, pcbY: -32, fontSize: 1.2 }), jsxRuntime.jsx("silkscreentext", { text: "USB-C", pcbX: -16, pcbY: 42, fontSize: 1 })] }), jsxRuntime.jsx(MinimalEnclosure, {})] }));

module.exports = index_circuit;