0hmX/play-test

This code defines a compact electronic circuit with a battery, switch, three resistors, and nine LEDs arranged in three rows, with connections illustrating power, switching, and LED pathways.

Version
0.0.1
License
unset
Stars
0

dist/index.cjs

'use strict';

var jsxRuntime = require('react/jsx-runtime');

var index = () => {
    return (jsxRuntime.jsxs("board", { width: "55mm", height: "40mm", children: [jsxRuntime.jsx("chip", { name: "BT1", footprint: "pinrow2", pinLabels: { pin1: "plus", pin2: "minus" } }), jsxRuntime.jsx("chip", { name: "SW1", footprint: "pinrow2", pinLabels: { pin1: "in", pin2: "out" } }), jsxRuntime.jsx("resistor", { name: "R1", resistance: "330", footprint: "0603" }), jsxRuntime.jsx("resistor", { name: "R2", resistance: "330", footprint: "0603" }), jsxRuntime.jsx("resistor", { name: "R3", resistance: "330", footprint: "0603" }), jsxRuntime.jsx("chip", { name: "D1", footprint: "0603", pinLabels: { pin1: "a", pin2: "c" } }), jsxRuntime.jsx("chip", { name: "D2", footprint: "0603", pinLabels: { pin1: "a", pin2: "c" } }), jsxRuntime.jsx("chip", { name: "D3", footprint: "0603", pinLabels: { pin1: "a", pin2: "c" } }), jsxRuntime.jsx("chip", { name: "D4", footprint: "0603", pinLabels: { pin1: "a", pin2: "c" } }), jsxRuntime.jsx("chip", { name: "D5", footprint: "0603", pinLabels: { pin1: "a", pin2: "c" } }), jsxRuntime.jsx("chip", { name: "D6", footprint: "0603", pinLabels: { pin1: "a", pin2: "c" } }), jsxRuntime.jsx("chip", { name: "D7", footprint: "0603", pinLabels: { pin1: "a", pin2: "c" } }), jsxRuntime.jsx("chip", { name: "D8", footprint: "0603", pinLabels: { pin1: "a", pin2: "c" } }), jsxRuntime.jsx("chip", { name: "D9", footprint: "0603", pinLabels: { pin1: "a", pin2: "c" } }), jsxRuntime.jsx("trace", { from: ".BT1 > .plus", to: ".SW1 > .in" }), jsxRuntime.jsx("trace", { from: ".SW1 > .out", to: ".R1 > .left" }), jsxRuntime.jsx("trace", { from: ".SW1 > .out", to: ".R2 > .left" }), jsxRuntime.jsx("trace", { from: ".SW1 > .out", to: ".R3 > .left" }), jsxRuntime.jsx("trace", { name: "ROW1", from: ".R1 > .right", to: ".D1 > .a" }), jsxRuntime.jsx("trace", { name: "ROW1", from: ".D1 > .a", to: ".D2 > .a" }), jsxRuntime.jsx("trace", { name: "ROW1", from: ".D2 > .a", to: ".D3 > .a" }), jsxRuntime.jsx("trace", { name: "ROW2", from: ".R2 > .right", to: ".D4 > .a" }), jsxRuntime.jsx("trace", { name: "ROW2", from: ".D4 > .a", to: ".D5 > .a" }), jsxRuntime.jsx("trace", { name: "ROW2", from: ".D5 > .a", to: ".D6 > .a" }), jsxRuntime.jsx("trace", { name: "ROW3", from: ".R3 > .right", to: ".D7 > .a" }), jsxRuntime.jsx("trace", { name: "ROW3", from: ".D7 > .a", to: ".D8 > .a" }), jsxRuntime.jsx("trace", { name: "ROW3", from: ".D8 > .a", to: ".D9 > .a" }), jsxRuntime.jsx("trace", { name: "GND", from: ".BT1 > .minus", to: ".D1 > .c" }), jsxRuntime.jsx("trace", { name: "GND", from: ".D1 > .c", to: ".D2 > .c" }), jsxRuntime.jsx("trace", { name: "GND", from: ".D2 > .c", to: ".D3 > .c" }), jsxRuntime.jsx("trace", { name: "GND", from: ".D1 > .c", to: ".D4 > .c" }), jsxRuntime.jsx("trace", { name: "GND", from: ".D4 > .c", to: ".D5 > .c" }), jsxRuntime.jsx("trace", { name: "GND", from: ".D5 > .c", to: ".D6 > .c" }), jsxRuntime.jsx("trace", { name: "GND", from: ".D4 > .c", to: ".D7 > .c" }), jsxRuntime.jsx("trace", { name: "GND", from: ".D7 > .c", to: ".D8 > .c" }), jsxRuntime.jsx("trace", { name: "GND", from: ".D8 > .c", to: ".D9 > .c" })] }));
};

module.exports = index;