tinsangbeeping/my_led_testing
This code defines a React component that creates an electronic module with an 8-pin microcontroller (like ATMEGA328P) connected to an external 2-pin header, including an internal signal path with a resistor and LED for visual indication, plus optional decoupling capacitor.
- Version
- 0.0.1
- License
- unset
- Stars
- 0
dist/index.d.ts
PCB
Schematic
type ChipWithLedSignalProps = {
/** Instance name prefix so you can reference parts from parent traces */
name?: string;
/** Where the block appears on the schematic */
schX?: number;
schY?: number;
/** Pick any 8-pin part; example uses ATMEGA328P just like you showed */
manufacturerPartNumber?: string;
/** LED / R values */
ledColor?: "red" | "green" | "blue" | "yellow" | "white";
ledFootprint?: string;
resistorValue?: string;
resistorFootprint?: string;
decouplingCap?: string;
capFootprint?: string;
};
/**
* A reusable “block”:
* - Exposes two named external pins via a 2-pin header: SIGNAL and GND
* - Internally closes the loop: SIGNAL -> R -> LED -> GND
* - Connects SIGNAL/GND to the chip (pin1=SIGNAL, pin8=GND)
* - Leaves chip pins 2..7 free for the parent circuit to wire
*/
declare function ChipWithLedSignal({ name, schX, schY, manufacturerPartNumber, ledColor, ledFootprint, resistorValue, resistorFootprint, decouplingCap, capFootprint, }: ChipWithLedSignalProps): any;
/** Example parent file: place the block and then wire to its *remaining* chip pins 2..7 */
declare function ParentCircuit(): any;
export { ChipWithLedSignal, ParentCircuit as default };