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/pcb.svg

PCBPCB preview for dist/pcb.svg
SchematicSchematic preview for dist/pcb.svg
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="600" data-software-used-string="@tscircuit/core@0.0.1015"><style></style><rect class="boundary" x="0" y="0" fill="#000" width="800" height="600" data-type="pcb_background" data-pcb-layer="global"/><rect class="pcb-boundary" fill="none" stroke="#fff" stroke-width="0.3" x="111.53846153846155" y="11.538461538461547" width="576.9230769230769" height="576.9230769230769" data-type="pcb_boundary" data-pcb-layer="global"/><path class="pcb-board" d="M 111.53846153846155 588.4615384615385 L 688.4615384615385 588.4615384615385 L 688.4615384615385 11.538461538461547 L 111.53846153846155 11.538461538461547 Z" fill="none" stroke="rgba(255, 255, 255, 0.5)" stroke-width="1.153846153846154" data-type="pcb_board" data-pcb-layer="board"/><rect class="pcb-pad" fill="rgb(200, 52, 52)" x="353.3269230769231" y="291.9230769230769" width="11.826923076923075" height="16.153846153846153" data-type="pcb_smtpad" data-pcb-layer="top"/><rect class="pcb-pad" fill="rgb(200, 52, 52)" x="332.2692307692308" y="291.9230769230769" width="11.826923076923075" height="16.153846153846153" data-type="pcb_smtpad" data-pcb-layer="top"/><rect class="pcb-pad" fill="rgb(200, 52, 52)" x="359.9759673685148" y="320.1923076923077" width="11.826923076923075" height="16.153846153846153" data-type="pcb_smtpad" data-pcb-layer="top"/><rect class="pcb-pad" fill="rgb(200, 52, 52)" x="381.0336596762071" y="320.1923076923077" width="11.826923076923075" height="16.153846153846153" data-type="pcb_smtpad" data-pcb-layer="top"/><rect class="pcb-pad" fill="rgb(200, 52, 52)" x="383.5576923076923" y="263.65384615384613" width="11.826923076923075" height="16.153846153846153" data-type="pcb_smtpad" data-pcb-layer="top"/><rect class="pcb-pad" fill="rgb(200, 52, 52)" x="404.6153846153846" y="263.65384615384613" width="11.826923076923075" height="16.153846153846153" data-type="pcb_smtpad" data-pcb-layer="top"/><rect class="pcb-pad" fill="rgb(200, 52, 52)" x="359.9759673685148" y="347.88461538461536" width="11.826923076923075" height="16.153846153846153" data-type="pcb_smtpad" data-pcb-layer="top"/><rect class="pcb-pad" fill="rgb(200, 52, 52)" x="381.0336596762071" y="347.88461538461536" width="11.826923076923075" height="16.153846153846153" data-type="pcb_smtpad" data-pcb-layer="top"/><path class="pcb-trace" stroke="rgb(200, 52, 52)" fill="none" d="M 414.65384615384613 300 L 414.65384615384613 275.8557692307692" stroke-width="1.7307692307692306" stroke-linecap="round" stroke-linejoin="round" shape-rendering="crispEdges" data-type="pcb_trace" data-pcb-layer="top"/><path class="pcb-trace" stroke="rgb(200, 52, 52)" fill="none" d="M 414.65384615384613 275.8557692307692 L 410.52884615384613 271.7307692307692" stroke-width="1.7307692307692306" stroke-linecap="round" stroke-linejoin="round" shape-rendering="crispEdges" data-type="pcb_trace" data-pcb-layer="top"/><path class="pcb-trace" stroke="rgb(200, 52, 52)" fill="none" d="M 414.65384615384613 300 L 414.65384615384613 300.5625058300533" stroke-width="1.7307692307692306" stroke-linecap="round" stroke-linejoin="round" shape-rendering="crispEdges" data-type="pcb_trace" data-pcb-layer="top"/><path class="pcb-trace" stroke="rgb(200, 52, 52)" fill="none" d="M 414.65384615384613 300.5625058300533 L 386.94712121466864 328.2692307692308" stroke-width="1.7307692307692306" stroke-linecap="round" stroke-linejoin="round" shape-rendering="crispEdges" data-type="pcb_trace" data-pcb-layer="top"/><path class="pcb-trace" stroke="rgb(200, 52, 52)" fill="none" d="M 365.8894289069763 328.2692307692308 L 365.8894289069763 327.70673659928406" stroke-width="1.7307692307692306" stroke-linecap="round" stroke-linejoin="round" shape-rendering="crispEdges" data-type="pcb_trace" data-pcb-layer="top"/><path class="pcb-trace" stroke="rgb(200, 52, 52)" fill="none" d="M 365.8894289069763 327.70673659928406 L 338.1826923076923 300" stroke-width="1.7307692307692306" stroke-linecap="round" stroke-linejoin="round" shape-rendering="crispEdges" data-type="pcb_trace" data-pcb-layer="top"/><path class="pcb-trace" stroke="rgb(200, 52, 52)" fill="none" d="M 385.34615384615387 300 L 359.24038461538464 300" stroke-width="1.7307692307692306" stroke-linecap="round" stroke-linejoin="round" shape-rendering="crispEdges" data-type="pcb_trace" data-pcb-layer="top"/><path class="pcb-trace" stroke="rgb(200, 52, 52)" fill="none" d="M 359.24038461538464 300 L 359.24038461538464 300" stroke-width="1.7307692307692306" stroke-linecap="round" stroke-linejoin="round" shape-rendering="crispEdges" data-type="pcb_trace" data-pcb-layer="top"/><path class="pcb-trace" stroke="rgb(200, 52, 52)" fill="none" d="M 385.34615384615387 300 L 385.34615384615387 275.8557692307692" stroke-width="1.7307692307692306" stroke-linecap="round" stroke-linejoin="round" shape-rendering="crispEdges" data-type="pcb_trace" data-pcb-layer="top"/><path class="pcb-trace" stroke="rgb(200, 52, 52)" fill="none" d="M 385.34615384615387 275.8557692307692 L 389.47115384615387 271.7307692307692" stroke-width="1.7307692307692306" stroke-linecap="round" stroke-linejoin="round" shape-rendering="crispEdges" data-type="pcb_trace" data-pcb-layer="top"/><text x="0" y="0" dx="0" dy="0" fill="#f2eda1" font-family="Arial, sans-serif" font-size="8.076923076923077" text-anchor="middle" dominant-baseline="central" transform="matrix(1,0,0,1,400,270.6923076923077)" class="pcb-silkscreen-text pcb-silkscreen-top" data-pcb-silkscreen-text-id="pcb_component_0" stroke="none" data-type="pcb_silkscreen_text" data-pcb-layer="top">PWRCTRL1_J1</text><path class="pcb-silkscreen pcb-silkscreen-top" d="M 338.1826923076923 312.6923076923077 L 367.46153846153845 312.6923076923077 L 367.46153846153845 287.3076923076923 L 338.1826923076923 287.3076923076923" fill="none" stroke="#f2eda1" stroke-width="1.153846153846154" stroke-linecap="round" stroke-linejoin="round" data-pcb-component-id="pcb_component_2" data-pcb-silkscreen-path-id="pcb_silkscreen_path_0" data-type="pcb_silkscreen_path" data-pcb-layer="top"/><text x="0" y="0" dx="0" dy="0" fill="#f2eda1" font-family="Arial, sans-serif" font-size="4.615384615384616" text-anchor="middle" dominant-baseline="central" transform="matrix(1,0,0,1,348.71153846153845,281.53846153846155)" class="pcb-silkscreen-text pcb-silkscreen-top" data-pcb-silkscreen-text-id="pcb_component_2" stroke="none" data-type="pcb_silkscreen_text" data-pcb-layer="top">PWRCTRL1_R1</text><path class="pcb-silkscreen pcb-silkscreen-top" d="M 386.94712121466864 315.5769230769231 L 357.6682750608225 315.5769230769231 L 357.6682750608225 340.96153846153845 L 386.94712121466864 340.96153846153845" fill="none" stroke="#f2eda1" stroke-width="1.153846153846154" stroke-linecap="round" stroke-linejoin="round" data-pcb-component-id="pcb_component_3" data-pcb-silkscreen-path-id="pcb_silkscreen_path_1" data-type="pcb_silkscreen_path" data-pcb-layer="top"/><text x="0" y="0" dx="0" dy="0" fill="#f2eda1" font-family="Arial, sans-serif" font-size="4.615384615384616" text-anchor="middle" dominant-baseline="central" transform="matrix(1,0,0,1,376.4182750608225,309.8076923076923)" class="pcb-silkscreen-text pcb-silkscreen-top" data-pcb-silkscreen-text-id="pcb_component_3" stroke="none" data-type="pcb_silkscreen_text" data-pcb-layer="top">PWRCTRL1_LED1</text><path class="pcb-silkscreen pcb-silkscreen-top" d="M 410.52884615384613 259.03846153846155 L 381.25 259.03846153846155 L 381.25 284.4230769230769 L 410.52884615384613 284.4230769230769" fill="none" stroke="#f2eda1" stroke-width="1.153846153846154" stroke-linecap="round" stroke-linejoin="round" data-pcb-component-id="pcb_component_4" data-pcb-silkscreen-path-id="pcb_silkscreen_path_2" data-type="pcb_silkscreen_path" data-pcb-layer="top"/><text x="0" y="0" dx="0" dy="0" fill="#f2eda1" font-family="Arial, sans-serif" font-size="4.615384615384616" text-anchor="middle" dominant-baseline="central" transform="matrix(1,0,0,1,400,253.26923076923077)" class="pcb-silkscreen-text pcb-silkscreen-top" data-pcb-silkscreen-text-id="pcb_component_4" stroke="none" data-type="pcb_silkscreen_text" data-pcb-layer="top">PWRCTRL1_C1</text><path class="pcb-silkscreen pcb-silkscreen-top" d="M 386.94712121466864 343.2692307692308 L 357.6682750608225 343.2692307692308 L 357.6682750608225 368.6538461538462 L 386.94712121466864 368.6538461538462" fill="none" stroke="#f2eda1" stroke-width="1.153846153846154" stroke-linecap="round" stroke-linejoin="round" data-pcb-component-id="pcb_component_5" data-pcb-silkscreen-path-id="pcb_silkscreen_path_3" data-type="pcb_silkscreen_path" data-pcb-layer="top"/><text x="0" y="0" dx="0" dy="0" fill="#f2eda1" font-family="Arial, sans-serif" font-size="4.615384615384616" text-anchor="middle" dominant-baseline="central" transform="matrix(1,0,0,1,376.4182750608225,374.4230769230769)" class="pcb-silkscreen-text pcb-silkscreen-top" data-pcb-silkscreen-text-id="pcb_component_5" stroke="none" data-type="pcb_silkscreen_text" data-pcb-layer="top">R_EXT</text><g data-type="pcb_plated_hole" data-pcb-layer="through"><rect class="pcb-hole-outer-pad" fill="rgb(200, 52, 52)" x="376.69230769230774" y="291.34615384615387" width="17.307692307692307" height="17.307692307692307" data-type="pcb_plated_hole" data-pcb-layer="top"/><circle class="pcb-hole-inner" fill="#FF26E2" cx="385.34615384615387" cy="300" r="5.769230769230769" data-type="pcb_plated_hole_drill" data-pcb-layer="drill"/></g><g data-type="pcb_plated_hole" data-pcb-layer="through"><circle class="pcb-hole-outer" fill="rgb(200, 52, 52)" cx="414.65384615384613" cy="300" r="8.653846153846153" data-type="pcb_plated_hole" data-pcb-layer="top"/><circle class="pcb-hole-inner" fill="#FF26E2" cx="414.65384615384613" cy="300" r="5.769230769230769" data-type="pcb_plated_hole_drill" data-pcb-layer="drill"/></g></svg>