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.
src/TentingStand.tsx
import * as React from 'react'
import { assembly } from 'tscircuit'
import { jscadPlanner as cad, type Vector3D } from 'jscad-planner'
import tenting from './generated/tenting.json'
import type { Half } from './mechanicalGeometry'
/** Optional lift-out cradle, built natively from the same watertight STL plan. */
export function TentingStand({half,angle=10}:{half:Half;angle?:5|10|15}) {
const plan=tenting.halves[half][String(angle) as '5'|'10'|'15']
return <assembly.printedpart name={plan.name} displayName={`${half} ${angle}° inner-edge tenting cradle`}
material="pla" color="#263b4d" cadModel={{jscad:cad.geometries.geom3.create(plan.faces.map(face=>({vertices:face.map(i=>plan.vertices[i] as Vector3D)})))}}/>
}