Add LED zones for multi-player support

未关闭
#24 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
python
领域
cli, embedded-iot

调研方向

首先检查当前 daemon 状态、pipe 协议、plasmactl 入口点以及现有配置格式,然后将提议的方法与 issue #13 进行比较。定义 plasma.conf 如何命名区域、offset 和 count 如何映射 LED,以及区域选择如何传递到 daemon。完成的标准是:一个 daemon 可以通过 plasmactl --zone 控制多个已配置的区域,而不采用 #13 中存在冲突的设计。

由索引模型根据 Issue 内容生成。

描述

This is a suggested alternative to #13 which has been conflicted beyond rescue.

  1. A zones section in plasma.conf where you can set a name with an offset + count
  2. hoist all the daemon's state out of main into per-zone state
  3. add some way to specify zone in the pipe protocol
  4. --zone in plasmactl

Instead of two daemons, it becomes plasmactl --zone player1 and plasmactl --zone player1 with the single daemon mapping all LEDs connected to the board, and the zone config deciding which player (or other feature, such as pulsing status LEDs, underlights, etc) controls which lights.

主要语言
Python
星标
18
派生
9
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

pimoroni/plasma-python 的其他 Issue

查看 pimoroni/plasma-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。