rushabhcodes/ESP32-E-Reader

This code defines the hardware layout and schematic connections for an ESP32-based e-reader device, including microcontroller, USB, display, power management, connectors, passives, switches, and associated PCB footprints, placements, and net connections.

Version
1.0.6
License
unset
Stars
0

imports/JS102011SAQN.tsx

import type { SwitchProps } from "@tscircuit/props";

const pinLabels = {
	pin1: ["pin1"],
	pin2: ["pin2"],
	pin3: ["pin3"],
} as const;

export const JS102011SAQN = (props: SwitchProps) => {
	const { name = "SW1", ...restProps } = props;

	return (
		<switch
			name={name}
			pinLabels={pinLabels}
			supplierPartNumbers={{
				jlcpcb: ["C221660"],
			}}
			manufacturerPartNumber="JS102011SAQN"
			footprint={
				<footprint>
					<hole pcbX="-3.400044mm" pcbY="-1.75002825mm" diameter="0.999998mm" />
					<hole pcbX="3.400044mm" pcbY="-1.75002825mm" diameter="0.999998mm" />
					<smtpad
						portHints={["pin1"]}
						pcbX="-2.499995mm"
						pcbY="1.00002975mm"
						width="1.1999976mm"
						height="2.499995mm"
						shape="rect"
					/>
					<smtpad
						portHints={["pin2"]}
						pcbX="0mm"
						pcbY="1.00002975mm"
						width="1.1999976mm"
						height="2.499995mm"
						shape="rect"
					/>
					<smtpad
						portHints={["pin3"]}
						pcbX="2.499995mm"
						pcbY="1.00002975mm"
						width="1.1999976mm"
						height="2.499995mm"
						shape="rect"
					/>
					<silkscreenpath
						route={[
							{ x: -0.20398740000007365, y: -5.56396524999991 },
							{ x: -0.20398740000007365, y: -3.5319652499999847 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -1.7279874000000746, y: -5.56396524999991 },
							{ x: -0.20398740000007365, y: -5.56396524999991 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -1.7279874000000746, y: -3.5319652499999847 },
							{ x: -1.7279874000000746, y: -5.56396524999991 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: 4.5000164000000495, y: -3.5500500499999816 },
							{ x: -4.5000164000000495, y: -3.550024649999955 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -4.5000164000000495, y: -3.5500500499999816 },
							{ x: -4.5000164000000495, y: 0.04996815000004062 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: 4.5000164000000495, y: 0.04999354999995376 },
							{ x: 4.5000164000000495, y: -3.550024649999955 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -4.5000164000000495, y: 0.04996815000004062 },
							{ x: -3.371138799999926, y: 0.04996815000004062 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -1.7088612000001149, y: 0.04996815000004062 },
							{ x: -0.8311388000000761, y: 0.04996815000004062 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: 0.8311387999999624, y: 0.04996815000004062 },
							{ x: 1.7088612000000012, y: 0.04996815000004062 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: 3.371138799999926, y: 0.04996815000004062 },
							{ x: 4.5000164000000495, y: 0.04996815000004062 },
						]}
					/>
					<silkscreentext
						text="{NAME}"
						pcbX="0mm"
						pcbY="3.23777175mm"
						anchorAlignment="center"
						fontSize="1mm"
					/>
					<fabricationnotepath
						route={[
							{ x: -0.21600160000002688, y: -5.527948049999964 },
							{ x: -0.21600160000002688, y: -3.5719448500000226 },
							{ x: -0.2279903999999533, y: -3.5599560499999825 },
							{ x: -1.6799813999999742, y: -3.5599560499999825 },
							{ x: -1.6919956000000411, y: -3.5719702499999357 },
							{ x: -1.6919956000000411, y: -5.49195624999993 },
							{ x: -1.667992599999934, y: -5.5159592499999235 },
							{ x: -0.21600160000002688, y: -5.527948049999964 },
						]}
						strokeWidth="0.254mm"
					/>
					<courtyardoutline
						outline={[
							{ x: -4.771200000000135, y: 2.487771749999979 },
							{ x: 4.771199999999908, y: 2.487771749999979 },
							{ x: 4.771199999999908, y: -5.83542824999995 },
							{ x: -4.771200000000135, y: -5.83542824999995 },
							{ x: -4.771200000000135, y: 2.487771749999979 },
						]}
					/>
				</footprint>
			}
			cadModel={{
				objUrl:
					"https://modelcdn.tscircuit.com/easyeda_models/assets/C221660.obj?uuid=d337b619ac8046ecb63111370d25527b",
				stepUrl:
					"https://modelcdn.tscircuit.com/easyeda_models/assets/C221660.step?uuid=d337b619ac8046ecb63111370d25527b",
				pcbRotationOffset: 0,
				modelOriginPosition: {
					x: 0,
					y: 1.7459756499999777,
					z: -0.8000016000000002,
				},
			}}
			{...restProps}
		/>
	);
};