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
MCUInterface.tsx
PCB
Schematic
import React from "react"
import MCUInterface from "./MCUInterface"
import LedSeriesBlock from "./LedSeriesBlock"
export default function MainCircuit() {
return (
<board width="50mm" height="50mm">
<MCUInterface name="MCU" schX={0} schY={0} />
<LedSeriesBlock name="LEDCHAIN" schX={20} schY={0} resistorValue="330" />
{/* Connect MCU pin1 -> LEDCHAIN signal (header pin1) */}
<trace from=".MCU > .1" to=".LEDCHAIN > .LEDCHAIN_J > .1" />
{/* Connect MCU pin2 -> LEDCHAIN gnd (header pin2) */}
<trace from=".MCU > .2" to=".LEDCHAIN > .LEDCHAIN_J > .2" />
</board>
)
}