mohan-bee/light-controller
This code defines the hardware sections and symbols for a PCB involving USB power, voltage regulation, ESP12F module, RGB outputs, I2C sensors, and debug points, along with rendering labels for test points.
- Version
- 1.0.30
- License
- unset
- Stars
- 2
Use with the tscircuit CLI
tsci is the tscircuit CLI. Install it with npm install -g tscircuit.
tsci clone mohan-bee/light-controller # download the package files into ./light-controller
tsci add mohan-bee/light-controller # add it to your project as @tsci/mohan-bee.light-controllerIn a cloned or new (tsci init) project: tsci dev starts a local preview, tsci build outputs Circuit JSON, and tsci push publishes to tscircuit.com.
imports/RVT1A471M0607.tsx
import type { ChipProps } from "@tscircuit/props"
const pinLabels = {
pin1: ["pin1"],
pin2: ["pin2"]
} as const
export const RVT1A471M0607 = (props: ChipProps<typeof pinLabels>) => {
return (
<chip
pinLabels={pinLabels}
symbol={
<symbol>
<port name="pin1" pinNumber={1} aliases={["1"]} direction="down" schX={0} schY={5.08} schStemLength={4.318} />
<port name="pin2" pinNumber={2} aliases={["2"]} direction="up" schX={0} schY={-5.08} schStemLength={4.826} />
<schematicpath points={[{"x":-2.54,"y":0.762},{"x":2.54,"y":0.762}]} strokeWidth={0.254} strokeColor="#8D2323" />
<schematicpath svgPath="M 0 -0.254 A 4.085234 4.085234 0 0 0 2.54 -1.016" strokeWidth={0.254} strokeColor="#8D2323" />
<schematicpath svgPath="M -2.54 -1.016 A 4.138092 4.138092 0 0 0 0 -0.254" strokeWidth={0.254} strokeColor="#8D2323" />
<schematicrect schX={-2.032} schY={1.5113} width={1.016} height={0.0254} strokeWidth={0.254} color="#8D2323" isFilled fillColor="#8D2323" />
<schematicrect schX={-2.0193} schY={1.524} width={0.0254} height={1.016} strokeWidth={0.254} color="#8D2323" isFilled fillColor="#8D2323" />
</symbol>
}
supplierPartNumbers={{
"jlcpcb": [
"C335982"
]
}}
manufacturerPartNumber="RVT1A471M0607"
footprint={<footprint>
<smtpad portHints={["pin1"]} pcbX="-2.670048mm" pcbY="0mm" width="3.499993mm" height="1.1999976mm" shape="rect" />
<smtpad portHints={["pin2"]} pcbX="2.670048mm" pcbY="0mm" width="3.499993mm" height="1.1999976mm" shape="rect" />
<silkscreenpath route={[{"x":3.3556194000000232,"y":-0.7392669999999271},{"x":3.3756599999999253,"y":-3.3756599999999253},{"x":-1.981200000000058,"y":-3.3756599999999253},{"x":-3.375660000000039,"y":-1.981200000000058},{"x":-3.3622996000000285,"y":-0.6857999999998583}]} />
<silkscreenpath route={[{"x":3.369487799999888,"y":0.7076948000001266},{"x":3.376168000000007,"y":3.376168000000007},{"x":-1.9800316000000748,"y":3.376168000000007},{"x":-3.376168000000007,"y":1.9800315999999611},{"x":-3.376168000000007,"y":0.685799999999972}]} />
<courtyardoutline outline={[{"x":-4.669599999999946,"y":3.6282000000001062},{"x":4.6696000000000595,"y":3.6282000000001062},{"x":4.6696000000000595,"y":-3.6281999999999925},{"x":-4.669599999999946,"y":-3.6281999999999925},{"x":-4.669599999999946,"y":3.6282000000001062}]} />
</footprint>}
cadModel={{
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C335982.obj?uuid=6cb1ec5759f6404189e20b90556867d6",
stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C335982.step?uuid=6cb1ec5759f6404189e20b90556867d6",
pcbRotationOffset: 180,
modelOriginPosition: { x: 0, y: -0.000012700000070253736, z: -0.05 },
}}
{...props}
/>
)
}