rushabhcodes/tt
This code models a 10mm by 10mm PCB with a 1kΩ resistor and a 1000pF capacitor connected via a trace.
Usage: To import and use the package "@tsci/rushabhcodes.tt" in a project: 1. Import the package: ```tsx import CircuitDesign from "@tsci/rushabhcodes.tt" ``` 2. Use the component in a React component or directly: ```tsx function App() { return <CircuitDesign /> } ``` The example demonstrates a basic circuit with a 1k resistor and a 1000pF capacitor connected by a trace.
- Version
- 0.0.1
- License
- unset
- Stars
- 0
imports/c2843868-1.tsx
import type { ChipProps } from "@tscircuit/props"
const pinLabels = {
pin1: ["B_NEG"],
pin2: ["R_NEG"],
pin3: ["G_NEG"],
pin4: ["G_POS"],
pin5: ["R_POS"],
pin6: ["B_POS"]
} as const
export const XL_5050RGBC = (props: ChipProps<typeof pinLabels>) => {
return (
<chip
pinLabels={pinLabels}
supplierPartNumbers={{
"jlcpcb": [
"C2843868"
]
}}
manufacturerPartNumber="XL_5050RGBC"
footprint={<footprint>
<smtpad portHints={["pin6"]} pcbX="2.2275799999998753mm" pcbY="1.5999459999999317mm" width="2.1049995999999997mm" height="0.9800081999999999mm" shape="rect" />
<smtpad portHints={["pin5"]} pcbX="2.2275799999998753mm" pcbY="0mm" width="2.1049995999999997mm" height="0.9800081999999999mm" shape="rect" />
<smtpad portHints={["pin4"]} pcbX="2.2275799999998753mm" pcbY="-1.5999459999999317mm" width="2.1049995999999997mm" height="0.9800081999999999mm" shape="rect" />
<smtpad portHints={["pin3"]} pcbX="-2.227579999999989mm" pcbY="-1.5999459999999317mm" width="2.1049995999999997mm" height="0.9800081999999999mm" shape="rect" />
<smtpad portHints={["pin2"]} pcbX="-2.227579999999989mm" pcbY="0mm" width="2.1049995999999997mm" height="0.9800081999999999mm" shape="rect" />
<smtpad portHints={["pin1"]} pcbX="-2.227579999999989mm" pcbY="1.5999459999999317mm" width="2.1049995999999997mm" height="0.9800081999999999mm" shape="rect" />
<silkscreenpath route={[{"x":-2.5762204000002384,"y":2.576220400000011},{"x":2.576220400000011,"y":2.576220400000011}]} />
<silkscreenpath route={[{"x":-2.5762204000002384,"y":-2.576220400000011},{"x":2.576220400000011,"y":-2.576220400000011}]} />
</footprint>}
{...props}
/>
)
}