abse/smart-ring-flex

A tscircuit package created by abse.

Version
0.0.24
License
unset
Stars
0

src/five-pin-service-connector.tsx

import type {ChipProps} from '@tscircuit/props'
// JST SUR manufacturer eSUR land pattern; optional manual open-housing service.
const pinLabels={pin1:['SWCLK'],pin2:['SWDIO'],pin3:['GND'],pin4:['nRESET'],pin5:['VREF_1V8'],pin6:['MP1'],pin7:['MP2']} as const
export function FivePinServiceHeader(props:ChipProps<typeof pinLabels>){return <chip pinLabels={pinLabels}
 manufacturerPartNumber="BM05B-SURS-TF(LF)(SN)" supplierPartNumbers={{jlcpcb:['C5306180']}}
 footprint={<footprint insertionDirection="from_above">
 {[-1.6,-.8,0,.8,1.6].map((x,i)=><smtpad key={i} portHints={[`pin${i+1}`]} pcbX={x} pcbY={.85} width={.5} height={1.1} shape="rect" noSolderPaste={Boolean(props.doNotPlace)}/>)}
 {[-2.9,2.9].map((x,i)=><smtpad key={i} portHints={[`pin${i+6}`]} pcbX={x} pcbY={-.55} width={1.2} height={1.7} shape="rect" noSolderPaste={Boolean(props.doNotPlace)}/>)}
 <silkscreenline x1={-2.05} y1={-1.1} x2={2.05} y2={-1.1} strokeWidth={.1}/>
 <silkscreencircle pcbX={-2.05} pcbY={1.45} radius={.10}/>
 <courtyardoutline outline={[{x:-3.75,y:-1.65},{x:3.75,y:-1.65},{x:3.75,y:1.65},{x:-3.75,y:1.65}]}/>
 </footprint>} {...props}/>}