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.
firmware/test.py
#!/usr/bin/env python3
"""Run protocol and actual-sketch tests against simulated hardware, plus host tests."""
import subprocess
import tempfile
from pathlib import Path
ROOT=Path(__file__).resolve().parent
with tempfile.TemporaryDirectory(prefix='epaper-tests-') as tmp:
for name in ['test_core','test_application']:
out=str(Path(tmp)/name)
subprocess.run(['g++','-std=c++17','-Wall','-Wextra','-Werror',
'-Wno-misleading-indentation','-fsanitize=address,undefined',
'-I',str(ROOT/'tests/fakes'),str(ROOT/'tests'/f'{name}.cpp'),'-o',out],check=True)
subprocess.run([out],check=True)
subprocess.run(['python','-m','unittest','discover','-s',str(ROOT/'tests'),'-v'],check=True)