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/SKRPACE010.tsx

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

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

export const SKRPACE010 = (props: PushButtonProps<typeof pinLabels>) => {
	const { name = "SW1", ...restProps } = props;

	return (
		<pushbutton
			name={name}
			pinLabels={pinLabels}
			supplierPartNumbers={{
				jlcpcb: ["C139797"],
			}}
			manufacturerPartNumber="SKRPACE010"
			footprint={
				<footprint>
					<smtpad
						portHints={["pin4"]}
						pcbX="-2.100072mm"
						pcbY="1.074928mm"
						width="1.0500106mm"
						height="0.6999986mm"
						shape="rect"
					/>
					<smtpad
						portHints={["pin3"]}
						pcbX="2.100072mm"
						pcbY="1.074928mm"
						width="1.0500106mm"
						height="0.6999986mm"
						shape="rect"
					/>
					<smtpad
						portHints={["pin2"]}
						pcbX="-2.100072mm"
						pcbY="-1.074928mm"
						width="1.0500106mm"
						height="0.6999986mm"
						shape="rect"
					/>
					<smtpad
						portHints={["pin1"]}
						pcbX="2.100072mm"
						pcbY="-1.074928mm"
						width="1.0500106mm"
						height="0.6999986mm"
						shape="rect"
					/>
					<silkscreenpath
						route={[
							{ x: -0.5080000000000382, y: 1.0160000000000764 },
							{ x: 0.5079999999999245, y: 1.0160000000000764 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -0.5080000000000382, y: -1.0159999999999627 },
							{ x: 0.5079999999999245, y: -1.0159999999999627 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: 2.199893999999972, y: 0.5438140000001113 },
							{ x: 2.199893999999972, y: -0.5438139999999976 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: 1.3664184000000432, y: 1.5238729999999805 },
							{ x: -1.366418400000157, y: 1.5238729999999805 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -2.1998940000000857, y: 0.5438140000001113 },
							{ x: -2.1998940000000857, y: -0.5438139999999976 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -1.3810995999999705, y: -1.5499079999999594 },
							{ x: 1.3810995999998568, y: -1.5499079999999594 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: 0.5079999999999245, y: 1.0160000000000764 },
							{ x: 0.26485528508385414, y: 0.9864768865048745 },
							{ x: 0.035841257203401256, y: 0.8996233220636896 },
							{ x: -0.16573262077258732, y: 0.7604869201419433 },
							{ x: -0.32815160774794094, y: 0.5771537826788062 },
							{ x: -0.4419765025684228, y: 0.36027856523526225 },
							{ x: -0.5005922160837599, y: 0.1224652671394324 },
							{ x: -0.5005922160837599, y: -0.1224652671394324 },
							{ x: -0.4419765025684228, y: -0.36027856523514856 },
							{ x: -0.32815160774794094, y: -0.5771537826788062 },
							{ x: -0.16573262077258732, y: -0.7604869201418296 },
							{ x: 0.035841257203401256, y: -0.8996233220635759 },
							{ x: 0.26485528508385414, y: -0.9864768865047608 },
							{ x: 0.5079999999999245, y: -1.0159999999999627 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: -0.5080000000000382, y: -1.0159999999999627 },
							{ x: -0.26485528508374045, y: -0.9864768865047608 },
							{ x: -0.03584125720362863, y: -0.8996233220635759 },
							{ x: 0.165732620772701, y: -0.7604869201418296 },
							{ x: 0.32815160774794094, y: -0.5771537826788062 },
							{ x: 0.4419765025683091, y: -0.36027856523514856 },
							{ x: 0.5005922160835325, y: -0.1224652671394324 },
							{ x: 0.5005922160835325, y: 0.1224652671394324 },
							{ x: 0.4419765025683091, y: 0.36027856523526225 },
							{ x: 0.32815160774794094, y: 0.5771537826788062 },
							{ x: 0.165732620772701, y: 0.7604869201419433 },
							{ x: -0.03584125720362863, y: 0.8996233220636896 },
							{ x: -0.26485528508374045, y: 0.9864768865048745 },
							{ x: -0.5080000000000382, y: 1.0160000000000764 },
						]}
					/>
					<silkscreentext
						text="{NAME}"
						pcbX="0.0127mm"
						pcbY="2.6256mm"
						anchorAlignment="center"
						fontSize="1mm"
					/>
					<courtyardoutline
						outline={[
							{ x: -2.8662000000001626, y: 1.8756000000000768 },
							{ x: 2.891599999999812, y: 1.8756000000000768 },
							{ x: 2.891599999999812, y: -1.8501999999998588 },
							{ x: -2.8662000000001626, y: -1.8501999999998588 },
							{ x: -2.8662000000001626, y: 1.8756000000000768 },
						]}
					/>
				</footprint>
			}
			cadModel={{
				objUrl:
					"https://modelcdn.tscircuit.com/easyeda_models/assets/C139797.obj?uuid=00d848a7e8384bbd9286566957e8bb9c",
				stepUrl:
					"https://modelcdn.tscircuit.com/easyeda_models/assets/C139797.step?uuid=00d848a7e8384bbd9286566957e8bb9c",
				pcbRotationOffset: 0,
				modelOriginPosition: {
					x: 0.000012700000070253736,
					y: 0.00012700000002041634,
					z: -0.01,
				},
			}}
			{...restProps}
		/>
	);
};