seveibar/usb-c-flashlight

A compact USB-C powered push button board with a red LED, utilizing a single current-limiting resistor for the LED indicator.

Version
1.0.0
License
unset
Stars
6

dist/index.cjs

PCBPCB preview for dist/index.cjs
SchematicSchematic preview for dist/index.cjs
'use strict';

var jsxRuntime = require('react/jsx-runtime');
var seveibar_smdUsbC = require('@tsci/seveibar.smd-usb-c');

var index = () => {
    return (jsxRuntime.jsxs("board", { width: "12mm", height: "30mm", children: [jsxRuntime.jsx(seveibar_smdUsbC.SmdUsbC, { connections: {
                    GND1: "net.GND",
                    GND2: "net.GND",
                    VBUS1: "net.VBUS",
                    VBUS2: "net.VBUS",
                }, pcbY: -10.5, schX: -4 }), jsxRuntime.jsx("led", { name: "LED", supplierPartNumbers: {
                    jlcpcb: ["965799"],
                }, color: "red", footprint: "0603", pcbY: 12, schY: 2 }), jsxRuntime.jsx("pushbutton", { name: "SW1", schY: -2, pcbRotation: "90deg", footprint: "pushbutton_id1.3mm_od2mm", connections: { pin2: ".R1 > .pos", pin3: "net.VBUS" }, supplierPartNumbers: {
                    jlcpcb: ["C110153"],
                } }), jsxRuntime.jsx("resistor", { name: "R1", footprint: "0603", resistance: "1k", pcbY: 7 }), jsxRuntime.jsx("trace", { from: ".R1 > .neg", to: ".LED .pos" }), jsxRuntime.jsx("trace", { from: ".LED .neg", to: "net.GND" })] }));
};

module.exports = index;