arnavk-09/noSchematicRepresentation
This code defines a 100mm by 30mm electronic circuit board featuring an 8-pin DIP chip, a 4-pin connector, a pushbutton switch, and an 8-pin GPIO pinout with designated functions.
- Version
- 0.0.1
- License
- unset
- Stars
- 0
index.tsx
PCB
Schematic
export default () => (
<board width="100mm" height="30mm">
{/* 1. chip \E2\80\94 defines ChipProps / ChipPropsSU */}
<chip
name="U1"
footprint="dip8"
pcbX={-35}
pcbY={0}
pinLabels={{
pin1: "VCC",
pin2: "INPUT",
pin3: "OUTPUT",
pin4: "GND",
pin5: "NC1",
pin6: "NC2",
pin7: "NC3",
pin8: "NC4",
}}
noSchematicRepresentation
/>
{/* 2. connector \E2\80\94 ConnectorProps extends ChipPropsSU */}
<connector
name="J1"
footprint="pinrow4_p2.54"
pcbX={-12}
pcbY={0}
pinLabels={{
pin1: "VCC",
pin2: "DATA_P",
pin3: "DATA_N",
pin4: "GND",
}}
noSchematicRepresentation
/>
{/* 3. pushbutton \E2\80\94 PushButtonProps = ChipProps */}
<pushbutton
name="SW1"
footprint="pushbutton"
pcbX={12}
pcbY={0}
noSchematicRepresentation
/>
{/* 4. pinout \E2\80\94 PinoutProps extends ChipProps */}
<pinout
name="MOD1"
footprint="dip8"
pcbX={35}
pcbY={0}
pinLabels={{
pin1: "GND",
pin2: "GPIO1",
pin3: "GPIO2",
pin4: "GPIO3",
pin5: "GPIO4",
pin6: "SDA",
pin7: "SCL",
pin8: "VCC",
}}
noSchematicRepresentation
/>
</board>
)