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/Display.tsx
import * as React from 'react'
import { FH34SRJ_10S_0_5SH_50_ } from '../imports/FH34SRJ_10S_0_5SH_50_'
import { placement,offsetPlacement,pcbProps } from './componentPlacement'
import type { Half } from './mechanicalGeometry'
import { Passives,type PassiveSpec } from './components'
/** Sharp LS011B7DH03 LD-29Y03 pages 15–16 and 35–36. Raw FPC, not nice!view header.
* EXTMODE high: maintain external VCOM while powered. GPIOs low before rail off.
*/
export function Display({half}:{half:Half}) {
const specs:PassiveSpec[]=[
{ref:'C_LCD1',kind:'C',value:'1uF',from:'LCD_VDD',to:'GND',dx:-5.5,dy:0,footprint:'0603'},
{ref:'C_LCD2',kind:'C',value:'100nF',from:'LCD_VDD',to:'GND',dx:-5.5,dy:-2},
{ref:'R_LCD_SCS',kind:'R',value:'100k',from:'displayCs',to:'GND',dx:5.5,dy:0},
{ref:'R_LCD_DISP',kind:'R',value:'100k',from:'displayDisp',to:'GND',dx:8.5,dy:0},
{ref:'R_LCD_GATE',kind:'R',value:'100k',from:'LCD_GATE',to:'VCC',dx:1.5,dy:2.7},
{ref:'R_LCD_EN',kind:'R',value:'100k',from:'displayPower',to:'GND',dx:8.5,dy:-3},
]
return <>
<schematicsection name="display" displayName="Raw LS011 memory LCD" sectionTitleFontSize={.4}/>
<FH34SRJ_10S_0_5SH_50_ name="J_LCD" {...pcbProps(placement(half,'J_LCD',{x:-53,y:13,rotation:0,side:'bottom'}))}
kicadFootprintMetadata={{properties:{ConnectorAccess:{value:'internal'}}}}
schX={84} schY={-16} schWidth={3.0} schHeight={1.4} schSectionName="display"
connections={{pin1:'net.displaySck',pin2:'net.displayMosi',pin3:'net.displayCs',pin4:'net.displayVcom',pin5:'net.displayDisp',pin6:'net.LCD_VDD',pin7:'net.LCD_VDD',pin8:'net.LCD_VDD',pin9:'net.GND',pin10:'net.GND'}}/>
<Passives half={half} anchor="LCD_SUPPORT" section="display" specs={specs} schX={91} schY={-13}/>
<mosfet name="Q_LCD_P" channelType="p" mosfetMode="enhancement" manufacturerPartNumber="AO3401A" pinLabels={{pin1:'gate',pin2:'source',pin3:'drain'}} footprint="sot23"
{...pcbProps(offsetPlacement(half,'Q_LCD_P','LCD_SUPPORT',5.5,4))} schX={91} schY={-21} schSectionName="display"
connections={{gate:'net.LCD_GATE',source:'net.VCC',drain:'net.LCD_VDD'}}/>
<mosfet name="Q_LCD_N" channelType="n" mosfetMode="enhancement" manufacturerPartNumber="2N7002" pinLabels={{pin1:'gate',pin2:'source',pin3:'drain'}} footprint="sot23"
{...pcbProps(offsetPlacement(half,'Q_LCD_N','LCD_SUPPORT',-9.5,-1))} schX={96} schY={-21} schSectionName="display"
connections={{gate:'net.displayPower',source:'net.GND',drain:'net.LCD_GATE'}}/>
</>
}