abse/museair-usb

USB-C–powered ESP32-C3 controller board with AP63203 buck conversion, AP2112K 3.3V regulation, I²C SEN62 sensor interface, status LED, buttons, UART/I²C headers, and extensive decoupling.

Version
0.5.7
License
unset
Stars
0

scripts/export-current-glb.mjs

import fs from 'node:fs'
import {convertCircuitJsonToGltf} from 'circuit-json-to-gltf'
const j=JSON.parse(fs.readFileSync(process.argv[2]||'dist/index/circuit.json'))
const glb=await convertCircuitJsonToGltf(j,{format:'glb',boardTextureResolution:Number(process.argv[4]||2048),boardDrillQuality:'high'})
fs.writeFileSync(process.argv[3]||'mechanical/horizontal/reference/pcb-imported-display.glb',Buffer.from(glb))
console.log('Exported current JSON directly, without CLI build cache.')