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

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

const pinLabels = {
	pin1: ["VIN"],
	pin2: ["VSS"],
	pin3: ["CE"],
	pin4: ["NC"],
	pin5: ["VOUT"],
} as const;

const pinAttributes = {
	pin1: { requiresPower: true },
	pin2: { requiresGround: true },
	pin4: { doNotConnect: true },
} as const;

export const ME6211C33M5G_N = (props: ChipProps<typeof pinLabels>) => {
	return (
		<chip
			pinLabels={pinLabels}
			pinAttributes={pinAttributes}
			supplierPartNumbers={{
				jlcpcb: ["C82942"],
			}}
			manufacturerPartNumber="ME6211C33M5G-N"
			footprint={
				<footprint>
					<smtpad
						portHints={["pin1"]}
						pcbX="-0.94996mm"
						pcbY="-1.15817015mm"
						width="0.4899914mm"
						height="1.1569954mm"
						shape="rect"
					/>
					<smtpad
						portHints={["pin2"]}
						pcbX="0mm"
						pcbY="-1.15817015mm"
						width="0.4899914mm"
						height="1.1569954mm"
						shape="rect"
					/>
					<smtpad
						portHints={["pin3"]}
						pcbX="0.94996mm"
						pcbY="-1.15817015mm"
						width="0.4899914mm"
						height="1.1569954mm"
						shape="rect"
					/>
					<smtpad
						portHints={["pin4"]}
						pcbX="0.94996mm"
						pcbY="1.14916585mm"
						width="0.4899914mm"
						height="1.175004mm"
						shape="rect"
					/>
					<smtpad
						portHints={["pin5"]}
						pcbX="-0.94996mm"
						pcbY="1.14916585mm"
						width="0.4899914mm"
						height="1.175004mm"
						shape="rect"
					/>
					<silkscreenpath
						route={[
							{ x: -1.5262098000000606, y: -0.8557069500000125 },
							{ x: -1.5262098000000606, y: 0.8467026499999974 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: 1.5262097999998332, y: -0.8557069500000125 },
							{ x: 1.5262097999998332, y: 0.8467026499999974 },
						]}
					/>
					<silkscreenpath
						route={[
							{ x: 0.4764023999998699, y: 0.8467026499999974 },
							{ x: -0.4764023999999836, y: 0.8467026499999974 },
						]}
					/>
					<silkscreencircle
						pcbX="-1.651mm"
						pcbY="-1.14750215mm"
						radius="0.150114mm"
					/>
					<silkscreentext
						text="{NAME}"
						pcbX="-0.1397mm"
						pcbY="2.74809785mm"
						anchorAlignment="center"
						fontSize="1mm"
					/>
					<courtyardoutline
						outline={[
							{ x: -2.0534000000000106, y: 1.998097850000022 },
							{ x: 1.7739999999998872, y: 1.998097850000022 },
							{ x: 1.7739999999998872, y: -2.108702149999999 },
							{ x: -2.0534000000000106, y: -2.108702149999999 },
							{ x: -2.0534000000000106, y: 1.998097850000022 },
						]}
					/>
				</footprint>
			}
			cadModel={{
				objUrl:
					"https://modelcdn.tscircuit.com/easyeda_models/assets/C82942.obj?uuid=460193f9bf2d42e58cf3c2f675b07dc6",
				stepUrl:
					"https://modelcdn.tscircuit.com/easyeda_models/assets/C82942.step?uuid=460193f9bf2d42e58cf3c2f675b07dc6",
				pcbRotationOffset: 90,
				modelOriginPosition: {
					x: 0.004489450000050965,
					y: 0.000012700000070253736,
					z: -0.049083,
				},
			}}
			{...props}
		/>
	);
};