rushabhcodes/wireless-split-keyboard
Wireless Split Keyboard — custom routed nRF52840 split PCBs with a printable enclosure
- Version
- 0.4.5
- License
- unset
- Stars
- 0
Use with the tscircuit CLI
tsci is the tscircuit CLI. Install it with npm install -g tscircuit.
tsci clone rushabhcodes/wireless-split-keyboard # download the package files into ./wireless-split-keyboard
tsci add rushabhcodes/wireless-split-keyboard # add it to your project as @tsci/rushabhcodes.wireless-split-keyboardIn 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/TPS63802DLAR.tsx
import * as React from 'react'
import type { ChipProps } from "@tscircuit/props"
const pinLabels = {
pin1: ["EN"],
pin2: ["MODE"],
pin3: ["AGND"],
pin4: ["FB"],
pin5: ["PG"],
pin6: ["VOUT"],
pin7: ["L2"],
pin8: ["GND"],
pin9: ["L1"],
pin10: ["VIN"]
} as const
const pinAttributes = {
pin3: {requiresGround: true},
pin8: {requiresGround: true},
pin10: {isInput: true, requiresPower: true},
pin9: {isBidirectional: true},
pin7: {isBidirectional: true},
pin6: {isOutput: true, providesPower: true},
pin5: {isOutput: true, needsExternalPullup: true, canUseOpenDrain: true},
pin4: {isInput: true},
pin2: {isInput: true, mustBeConnected: true},
pin1: {isInput: true, mustBeConnected: true}
} satisfies NonNullable<ChipProps["pinAttributes"]>
export const TPS63802DLAR = (props: ChipProps<typeof pinLabels>) => {
return (
<chip
pinLabels={pinLabels}
pinAttributes={pinAttributes}
supplierPartNumbers={{
"jlcpcb": [
"C2845237"
]
}}
manufacturerPartNumber="TPS63802DLAR"
footprint={<footprint>
<smtpad portHints={["pin10"]} pcbX="0.74994135mm" pcbY="0.999998mm" width="0.8999982mm" height="0.2999994mm" shape="rect" />
<smtpad portHints={["pin9"]} pcbX="0.74994135mm" pcbY="0.499872mm" width="0.8999982mm" height="0.2999994mm" shape="rect" />
<smtpad portHints={["pin8"]} pcbX="0.55004335mm" pcbY="0mm" width="1.2999974mm" height="0.2999994mm" shape="rect" />
<smtpad portHints={["pin7"]} pcbX="0.74994135mm" pcbY="-0.500126mm" width="0.8999982mm" height="0.2999994mm" shape="rect" />
<smtpad portHints={["pin6"]} pcbX="0.74994135mm" pcbY="-0.999998mm" width="0.8999982mm" height="0.2999994mm" shape="rect" />
<smtpad portHints={["pin5"]} pcbX="-0.90004265mm" pcbY="-0.999998mm" width="0.5999988mm" height="0.2999994mm" shape="rect" />
<smtpad portHints={["pin4"]} pcbX="-0.90004265mm" pcbY="-0.500126mm" width="0.5999988mm" height="0.2999994mm" shape="rect" />
<smtpad portHints={["pin3"]} pcbX="-0.90004265mm" pcbY="0mm" width="0.5999988mm" height="0.2999994mm" shape="rect" />
<smtpad portHints={["pin2"]} pcbX="-0.90004265mm" pcbY="0.499872mm" width="0.5999988mm" height="0.2999994mm" shape="rect" />
<smtpad portHints={["pin1"]} pcbX="-0.90004265mm" pcbY="0.999998mm" width="0.5999988mm" height="0.2999994mm" shape="rect" />
<silkscreenpath route={[{"x":1.0680255500000158,"y":1.330121800000029},{"x":1.0680255500000158,"y":1.5240000000001146}]} />
<silkscreenpath route={[{"x":-1.0909744500000897,"y":-1.330121800000029},{"x":-1.0909744500000897,"y":-1.5239999999998872},{"x":1.0680255500000158,"y":-1.5239999999998872},{"x":1.0680255500000158,"y":-1.330121800000029}]} />
<silkscreenpath route={[{"x":1.0680255500000158,"y":1.5240000000001146},{"x":-1.0909744500000897,"y":1.5240000000001146},{"x":-1.0909744500000897,"y":1.330121800000029}]} />
<silkscreencircle pcbX="-1.39712065mm" pcbY="1.524mm" radius="0.100076mm" />
<silkscreentext text="{NAME}" pcbX="-0.14972665mm" pcbY="2.63576mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-1.29,"y":1.7499970000000076},{"x":1.29,"y":1.7499970000000076},{"x":1.29,"y":-1.7499969999998939},{"x":-1.29,"y":-1.7499969999998939},{"x":-1.29,"y":1.7499970000000076}]} />
</footprint>}
cadModel={{
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C2845237.obj?uuid=aaec7da25c23451ca65c9907eea57d42",
stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C2845237.step?uuid=aaec7da25c23451ca65c9907eea57d42",
pcbRotationOffset: 0,
modelOriginPosition: { x: 0.07497445000001335, y: 0, z: -0.95 },
}}
{...props}
/>
)
}