UNPKG

@typecad/typecad

Version:

🤖programmatically 💥create 🛰️hardware

46 lines (45 loc) 967 B
import { Pin } from "./pin"; export declare class I2C { sda: Pin; scl: Pin; constructor(sda: Pin, scl: Pin); } export declare class UART { tx: Pin; rx: Pin; rts?: Pin; cts?: Pin; constructor(rx: Pin, tx: Pin, rts?: Pin, cts?: Pin); } export declare class USB { dp: Pin; dn: Pin; constructor(DP: Pin, DN: Pin); } export declare class PowerInput { power: Pin; gnd: Pin; voltage?: number; constructor(power: Pin, gnd: Pin, voltage?: number); } export declare class PowerSupply { power: Pin; gnd: Pin; voltage?: number; constructor(power: Pin, gnd: Pin, voltage?: number); } interface IPower { power?: Pin; gnd?: Pin; voltage?: number; current?: number; direction?: 'input' | 'output'; } export declare class Power { power: Pin; gnd: Pin; voltage?: number; current?: number; constructor({ power, gnd, voltage, current, direction }?: IPower); } export {};