gokul/lora-device

A compact LoRa/GNSS device PCB integrating an SX1262 radio, GNSS module, USB/UART interface, 1.5 µH inductor, LiPo battery connector with NTC, and supporting passives.

Version
0.1.6
License
unset
Stars
0

validation/reproductions/jlc-default-spacing.ts.txt

import {checkSameNetViaSpacing} from '@tscircuit/checks'
import type {CircuitJson} from 'circuit-json'
const input:CircuitJson=await Bun.file(new URL('./jlc-default-spacing-input.json.txt', import.meta.url)).json()
const defaultErrors=checkSameNetViaSpacing(input)
const manufacturerErrors=checkSameNetViaSpacing(input,{minClearance:0.2})
if(defaultErrors.length!==0||manufacturerErrors.length!==1)throw new Error('Reproduction did not match')
console.log(JSON.stringify({defaultErrors,manufacturerErrors},null,2))