{
  "manifest": {
    "spekkr": 1,
    "id": "onyx/usb-c-power-input",
    "name": "USB-C power input",
    "summary": "A 5 V power input from a USB-C socket, drawn as a circuit, with the resistors chargers look for and checks that catch the usual mistakes.",
    "keywords": [
      "usb type-c",
      "pcb",
      "schematic",
      "kicad",
      "cc resistors",
      "5k1",
      "hardware",
      "vbus",
      "skidl"
    ],
    "kind": "electronics",
    "version": "0.1.1",
    "author": {
      "id": "onyx",
      "name": "Onyx"
    },
    "targets": {
      "stack": [
        "KiCad",
        "SKiDL"
      ]
    },
    "customize": {
      "settings": [
        {
          "key": "max_current",
          "label": "Most current the board draws, A",
          "default": "1.5",
          "help": "0.5, 1.5 or 3."
        }
      ],
      "options": [
        {
          "key": "detect_current",
          "label": "Tell how much the source offers",
          "default": true,
          "help": "Two outputs a microcontroller can read to learn whether 1.5 A or 3 A is on offer."
        },
        {
          "key": "data_lines",
          "label": "USB 2.0 data",
          "default": false,
          "help": "Brings D+ and D- out. Off means the socket only supplies power."
        },
        {
          "key": "power_led",
          "label": "Power light",
          "default": true,
          "help": "An LED that is lit while the board has power."
        }
      ],
      "swaps": [
        {
          "key": "tool",
          "label": "How the circuit is written",
          "choices": [
            "skidl",
            "kicad"
          ],
          "default": "skidl",
          "help": "SKiDL is Python that writes a KiCad netlist. KiCad is a schematic file."
        }
      ]
    },
    "files": [
      {
        "path": "spec.md",
        "about": "Requirements and acceptance checks."
      },
      {
        "path": "design.md",
        "about": "Nets, values, thresholds and what the checks read."
      },
      {
        "path": "tasks.md",
        "about": "Build tasks in order, each with a check."
      }
    ],
    "needs": {
      "permissions": [
        "shell"
      ]
    },
    "demo": {
      "screenshots": [
        "shots/usb-c-power-schematic.png",
        "shots/usb-c-cc-resistors.png",
        "shots/usb-c-vbus-protection.png"
      ]
    },
    "safety": {
      "commands": [
        "install SKiDL or KiCad, whichever the tool input names"
      ]
    },
    "lineage": {},
    "changelog": [
      {
        "version": "0.1.1",
        "date": "2026-11-14",
        "note": "Says \"person\" where it said \"buyer\"."
      },
      {
        "version": "0.1.0",
        "date": "2026-11-14",
        "note": "Moved from dwrtz/usb-c-power-input."
      }
    ]
  },
  "links": {
    "page": "./",
    "bundle": "bundle.tar.gz",
    "files": {
      "design.md": "files/design.md",
      "shots/usb-c-cc-resistors.png": "files/shots/usb-c-cc-resistors.png",
      "shots/usb-c-power-schematic.png": "files/shots/usb-c-power-schematic.png",
      "shots/usb-c-vbus-protection.png": "files/shots/usb-c-vbus-protection.png",
      "spec.md": "files/spec.md",
      "tasks.md": "files/tasks.md"
    }
  },
  "publishedBy": "onyx",
  "uploaded": {
    "shots/usb-c-cc-resistors.png": {
      "bytes": 58143,
      "type": "image/png"
    },
    "shots/usb-c-power-schematic.png": {
      "bytes": 106300,
      "type": "image/png"
    },
    "shots/usb-c-vbus-protection.png": {
      "bytes": 58983,
      "type": "image/png"
    }
  }
}
