## Copyright (C) 2026 Solaar Contributors https://pwr-solaar.github.io/Solaar/ ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the License, or ## (at your option) any later version. ## ## This program is distributed in the hope that it will be useful, ## but WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License along ## with this program; if not, write to the Free Software Foundation, Inc., ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. """LED layout for the G502 X family (G502 X, G502 X PLUS, G502 X LIGHTSPEED). Eight LEDs reported as zones 1..8 by the firmware. Positions may need revision per actual hardware. Row 0: 3 . . . . . 2 Row 1: . 4 8 7 6 5 . Row 2: . . . . . . 1 """ from __future__ import annotations from ..layout import Cell from ..layout import Layout _CELLS: tuple[Cell, ...] = ( Cell(zone_id=1, row=2, col=6, group="main", label="1"), Cell(zone_id=2, row=0, col=6, group="main", label="2"), Cell(zone_id=3, row=0, col=0, group="main", label="3"), Cell(zone_id=4, row=1, col=1, group="main", label="4"), Cell(zone_id=5, row=1, col=5, group="main", label="5"), Cell(zone_id=6, row=1, col=4, group="main", label="6"), Cell(zone_id=7, row=1, col=3, group="main", label="7"), Cell(zone_id=8, row=1, col=2, group="main", label="8"), ) LAYOUT: Layout = Layout( cells=_CELLS, rows=3, cols=7, description="Logitech G502 X family", )