rushabhcodes/usb-c-e-paper-display
USB-C powered RP2354B controller board with protected power regulation, EPD display interface and charge-pump rails, crystal timing, user/boot switches, status LEDs, and SWD test points.
- Version
- 1.4.1
- License
- unset
- Stars
- 0
Use with the tscircuit CLI
tsci is the tscircuit CLI. Install it with npm install -g tscircuit.
tsci clone rushabhcodes/usb-c-e-paper-display # download the package files into ./usb-c-e-paper-display
tsci add rushabhcodes/usb-c-e-paper-display # add it to your project as @tsci/rushabhcodes.usb-c-e-paper-displayIn 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.
product/supplier-solid-model.ts
import solids from "../enclosure/component-models.json"
import { COMPONENT_MODEL_ROOT } from "./model-assets"
import coreInductor from "../enclosure/core-inductor-model.json"
export function supplierSolidModel(sku: string, pcbRotationOffset: number) {
const record = solids.find(s => s.lcsc === sku)
if (!record) throw new Error(`Missing validated solid model: ${sku}`)
const [min,max] = record.model_bounds_mm
return {glbUrl: sku === "C408335" ? coreInductor.dataUrl : `${COMPONENT_MODEL_ROOT}${sku}.glb`, pcbRotationOffset,
modelOriginPosition: {x:0,y:0,z:0},modelUnitToMmScale:1,
modelBounds: {min:{x:min[0],y:min[1],z:min[2]},max:{x:max[0],y:max[1],z:max[2]}}}
}