muse/esp32-eink-display

A 55×46 mm two-layer ESP32-S3 e-paper controller board with USB‑C power/programming, buck regulation, FPC display connector, UC8179-style boost/charge-pump circuitry, ESD protection, controls, and routed passive components.

Version
1.3.4
License
unset
Stars
0

scripts/render-assembly-preview.mjs

// Frame both the PCB and the separately mounted 170.2 × 111.2 mm panel.
// PoppyGL 0.0.30 fixes near-plane clipping; this camera also includes the
// entire display in the published preview instead of framing only the PCB.
import {readFileSync,writeFileSync} from "node:fs"
import {renderGLTFToPNGFromGLB} from "poppygl"
const glb=readFileSync(new URL("../dist/index/3d.glb",import.meta.url))
const camera={camPos:[90,200,60],lookAt:[-10,0,-65],fov:50}
const png=await renderGLTFToPNGFromGLB(
  glb.buffer.slice(glb.byteOffset,glb.byteOffset+glb.byteLength),camera)
writeFileSync(new URL("../dist/index/3d.png",import.meta.url),Buffer.from(png))
console.log("3D assembly preview updated: PCB and full-size raw panel")