{
  "$schema": "https://o2csi.github.io/candeo/device-definition.schema.json",
  "name": "Alienware Aurora R12",
  "notes": [
    "Unverified: never tried on this machine. Written on 2026-10-16 by alienfx.mjs from alienfx-tools, https://github.com/T-Troll/alienfx-tools, MIT licence, commit 3289c320 (2026-10-14): alienfx-gui/Mappings/devices.csv, each machine's map of its lights.",
    "Its map there: “Alienware Aurora R12”, line 117, device “Chassis”. Which id lights what is that map's; the names are its own, in plain words.",
    "The protocol is verified: the AW-ELC's live preview, as alienware-17-r5-zones.json sends it, which stores nothing in the device.",
    "Matched on the machine (#326): SMBIOS names it “Alienware Aurora R12”, as dmidecode reports it in linuxhw/DMI, https://github.com/linuxhw/DMI (CC BY 4.0), commit 57b21bc6 (2025-01-06): Desktop/Alienware/Aurora/Aurora R12, SKU 0A63.",
    "alienfx-tools does not mark id 1, “Alienhead/Power Button”, as the power button: it is drawn, as the 17 R5's is.",
    "Drawn as the case's front, the lights inside on a side window. Where a light sits is not in the source: it is drawn where its name puts it, the numbered ones in their order around an oval.",
    "Does it light? Say so: https://github.com/o2csi/candeo/issues/new?template=device-report.yml"
  ],
  "match": { "vid": "187c", "pid": "0550", "usagePage": "ff00", "usage": "0001", "machine": "Alienware Aurora R12" },
  "report": { "wire": "output", "length": 33, "prefix": "00" },
  "frame": {
    "pace": { "atLeastMs": 100, "skipUnchanged": true },
    "open": ["03 21 00 01 ff ff"],
    "each": {
      "group": "colour",
      "chunk": 4,
      "send": ["03 23 01 00 {count} {addresses}", "03 24 00 07 d0 00 fa {r} {g} {b}"]
    },
    "close": ["03 21 00 03 00 ff"]
  },
  "lights": {
    "kind": "zones",
    "items": [
      { "name": "front ring", "address": 0, "shape": "disc", "rect": [2, 3.5, 5, 10] },
      { "name": "alien head and power button", "address": 1, "shape": "disc", "rect": [4, 1, 1, 1] }
    ]
  },
  "outline": [{ "rect": [0, 0, 9, 18], "r": 0.6 }],
  "examples": [
    {
      "colours": ["ff0000", "00ff00"],
      "reports": [
        "03 21 00 01 ff ff",
        "03 23 01 00 01 00",
        "03 24 00 07 d0 00 fa ff 00 00",
        "03 23 01 00 01 01",
        "03 24 00 07 d0 00 fa 00 ff 00",
        "03 21 00 03 00 ff"
      ]
    }
  ]
}
