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.
scripts/catalog.py
import json,subprocess,sys
from pathlib import Path
from concurrent.futures import ThreadPoolExecutor
queries=sys.argv[1:]
def search(q):
p=subprocess.run(['bun','run','--bun','tsci','search','--jlcpcb',q,'--json'],capture_output=True,text=True)
try:
d=json.loads(p.stdout); Path('docs/parts/'+q+'.json').write_text(json.dumps(d,indent=2)+'\n')
return q,[{k:c.get(k) for k in ['lcsc','mfr','package','stock','description']} for c in d['results'][:3]]
except Exception: return q,p.stdout[-200:]+p.stderr[-200:]
with ThreadPoolExecutor(max_workers=4) as pool:
for q,r in pool.map(search,queries): print(q,json.dumps(r),flush=True)