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-display

In 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.

scripts/search-parts.py

import json, subprocess
from pathlib import Path
queries = ['C20625731','C165948','C262669','C7519','MBR0530','NR3015T100M','C720477','C15849','C15850','C96446','C21120','C23186','C22935','C23187','C25819','C22936','C22962','C25080']
for query in queries:
    proc = subprocess.run(['bun','run','--bun','tsci','search','--jlcpcb',query,'--json'], capture_output=True,text=True)
    try:
        data=json.loads(proc.stdout)
        Path(f'docs/parts/{query}.json').write_text(json.dumps(data,indent=2)+'\n')
        print(query, json.dumps([{k:c.get(k) for k in ['lcsc','mfr','package','stock','description']} for c in data.get('results',[])[:2]]),flush=True)
    except Exception:
        print(query,proc.stdout[-250:],proc.stderr[-250:],flush=True)