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/CPG135001D02.tsx
import * as React from 'react'
import type { PushButtonProps } from "@tscircuit/props"
const pinLabels = {
pin1: ["pin1"],
pin2: ["pin2"]
} as const
export const CPG135001D02 = (props: PushButtonProps<typeof pinLabels>) => {
const { name = "SW1", ...restProps } = props
return (
<pushbutton
name={name}
pinLabels={pinLabels}
supplierPartNumbers={{
"jlcpcb": [
"C400230"
]
}}
manufacturerPartNumber="CPG135001D02"
footprint={<footprint>
<hole pcbX="-0.000127mm" pcbY="-2.5249505mm" diameter="3.5000184mm" />
<hole pcbX="-5.499989mm" pcbY="-2.5249505mm" diameter="1.999996mm" />
<hole pcbX="5.499989mm" pcbY="-2.5249505mm" diameter="1.999996mm" />
<platedhole portHints={["pin1"]} pcbX="-0.000127mm" pcbY="3.3749615mm" outerDiameter="1.7999964mm" holeDiameter="1.1999976mm" shape="circle" />
<platedhole portHints={["pin2"]} pcbX="4.999863mm" pcbY="1.2751435mm" outerDiameter="1.7999964mm" holeDiameter="1.1999976mm" shape="circle" />
<silkscreenpath route={[{"x":-7.500137400000085,"y":-10.024960899999769},{"x":7.499883399999931,"y":-10.024960899999769}]} />
<silkscreenpath route={[{"x":7.499883399999931,"y":-10.024960899999769},{"x":7.499883399999931,"y":4.975059900000019}]} />
<silkscreenpath route={[{"x":-7.500137400000085,"y":-10.024960899999769},{"x":-7.500137400000085,"y":4.975059900000019}]} />
<silkscreenpath route={[{"x":-7.500137400000085,"y":4.975059900000019},{"x":7.499883399999931,"y":4.975059900000019}]} />
<silkscreentext text="{NAME}" pcbX="-0.000127mm" pcbY="5.9934495mm" anchorAlignment="center" fontSize="1mm" />
<courtyardoutline outline={[{"x":-7.750112000000172,"y":5.225009100000079},{"x":7.749857999999904,"y":5.225009100000079},{"x":7.749857999999904,"y":-10.274960899999769},{"x":-7.750112000000172,"y":-10.274960899999769},{"x":-7.750112000000172,"y":5.225009100000079}]} />
</footprint>}
cadModel={chocSwitchCadModel}
{...restProps}
/>
)
}
/** Imported supplier geometry, shared with the mechanical assembly. */
export const chocSwitchCadModel = {
objUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C400230.obj?uuid=f59fab8b336a4dedb49f39b3a4d43305",
stepUrl: "https://modelcdn.tscircuit.com/easyeda_models/assets/C400230.step?uuid=f59fab8b336a4dedb49f39b3a4d43305",
pcbRotationOffset: 0,
modelOriginPosition: { x: 0.00012700000002041634, y: 2.524975899999845, z: -3.000006 },
} as const