abse/smartwatch-flex-top-only
Three-panel flex smartwatch with two parallel R3.9 bends, all components flat-top, low-profile JST connector harnesses, split heartbeat optical windows and screw-retained PCB mounting. Modeled 39 × 50.5 × 14.5mm prototype; 100% routing, zero native DRC and shorts. Hardware qualification pending.
- Version
- 0.2.22
- License
- unset
- Stars
- 0
scripts/build-schematic.tsx
import fs from 'node:fs'
import React from 'react'
import {Circuit} from 'tscircuit'
import Board from '../index'
const circuit=new Circuit({platform:{pcbDisabled:true,routingDisabled:true,placementDrcChecksDisabled:true}})
circuit.add(<Board/>); await circuit.renderUntilSettled()
fs.mkdirSync('dist/schematic',{recursive:true})
const json=circuit.getCircuitJson()
fs.writeFileSync('dist/schematic/circuit.json',JSON.stringify(json,null,2)+'\n')
console.log(JSON.stringify({symbols:json.filter(e=>e.type==='schematic_component').length,notes:json.filter(e=>e.type==='schematic_text').length,issues:json.filter(e=>e.type.includes('error')||e.type.endsWith('_warning'))}))
process.exit(json.some(e=>e.type.includes('error')||e.type.endsWith('_warning'))?1:0)