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/TC_1101V_C_C_W.tsx
import type { PushButtonProps } from "@tscircuit/props"
const pinLabels = {
pin1: ["pin1"],
pin2: ["pin2"],
pin3: ["pin3"],
pin4: ["pin4"]
} as const
export const TC_1101V_C_C_W = (props: PushButtonProps<typeof pinLabels>) => {
const { name = "SW1", ...restProps } = props
return (
<pushbutton
name={name}
pinLabels={pinLabels}
supplierPartNumbers={{
"jlcpcb": [
"C318991"
]
}}
manufacturerPartNumber="TC_1101V_C_C_W"
footprint={<footprint>
<platedhole portHints={["pin1"]} pcbX="-2.540127mm" pcbY="-1.388999mm" outerDiameter="1.524mm" holeDiameter="0.9144mm" shape="circle" />
<platedhole portHints={["pin2"]} pcbX="2.539873mm" pcbY="-1.388999mm" outerDiameter="1.524mm" holeDiameter="0.9144mm" shape="circle" />
<platedhole portHints={["pin3"]} pcbX="-3.499993mm" pcbY="1.151001mm" outerDiameter="1.999996mm" holeDiameter="1.1999976mm" shape="circle" />
<platedhole portHints={["pin4"]} pcbX="3.499993mm" pcbY="1.151001mm" outerDiameter="1.999996mm" holeDiameter="1.1999976mm" shape="circle" />
<silkscreenpath route={[{"x":-3.6829999999999927,"y":2.421000999999933},{"x":3.6829999999999927,"y":2.421000999999933},{"x":3.6829999999999927,"y":2.368423000000007}]} />
<silkscreenpath route={[{"x":3.6829999999999927,"y":-0.06642100000010487},{"x":3.6829999999999927,"y":-3.92899900000009},{"x":-3.6829999999999927,"y":-3.92899900000009},{"x":-3.6829999999999927,"y":-0.06642100000010487}]} />
<silkscreenpath route={[{"x":-3.6829999999999927,"y":2.368423000000007},{"x":-3.6829999999999927,"y":2.421000999999933}]} />
<courtyardoutline outline={[{"x":-4.847527000000014,"y":2.671000999999933},{"x":4.847272999999973,"y":2.671000999999933},{"x":4.847272999999973,"y":-6.591998999999987},{"x":-4.847527000000014,"y":-6.591998999999987},{"x":-4.847527000000014,"y":2.671000999999933}]} />
</footprint>}
cadModel={{
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C318991.obj?uuid=c588545f663f4fc6b3755be2f7fb80cf",
stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C318991.step?uuid=c588545f663f4fc6b3755be2f7fb80cf",
pcbRotationOffset: 0,
modelOriginPosition: { x: 0.000012700000070253736, y: 1.3439954000000853, z: -0.000006999999999646178 },
}}
{...restProps}
/>
)
}