readGPIOs function
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 半天
- 新手友好度
- 25/100
- Issue 类型
- 文档
- 描述清晰度
- 需要澄清
- 活跃度
- 冷清
- 技术栈
- embedded-iot, python
- 领域
- api, embedded-iot
调研方向
The question is how to get the value returned by readGPIOs(id, mask) in the remote_hardware.py module, which is called after watchGPIOs and writeGPIOs in the snippet. Read those three methods and the response handling around them to see how the GPIO value reaches the caller. Done means the usage is confirmed against the code and a documentation or example change explains how to retrieve the value.
由索引模型根据 Issue 内容生成。
描述
Not sure if this should be an issue. I'm trying to get a value back from the readGPIOs(id, mask) function in the remote_hardware.py module. I'm not sure if I'm using it correctly.
iface = MagicMock(autospec=SerialInterface)
rhw = RemoteHardwareClient(iface)
rhc = remote_hardware.RemoteHardwareClient(interface)
destination_node_id = 1128161828
bitmask = 16
value = 1
rhw.watchGPIOs(destination_node_id, bitmask)
rhw.writeGPIOs(destination_node_id, bitmask, value)
rhw.readGPIOs(destination_node_id,bitmask,True)
How do I get the gpio_value from the read function?
Or should I be doing this some other way?
- 主要语言
- Python
- 星标
- 855
- 派生
- 355
- 平均合并
- 3 天 3 小时
- 30 天内合并 PR
- 12
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
meshtastic/python 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
meshtastic/python#972 ·
维护者通常 1 天内回复
-
Bug: Can't run on Termux可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
meshtastic/python#969 ·
维护者通常 1 天内回复
-
good first issue help wanted
难度 2/5 1-3 小时 新手友好度 62/100
meshtastic/python#506 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 55/100
meshtastic/python#985 · 3 条评论 ·
维护者通常 1 天内回复
-
Undocumented `--set` choices可能已有人在做 @Cryptoteep 于 54 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 35/100
meshtastic/python#978 · 1 个 reaction ·
维护者通常 1 天内回复
查看 meshtastic/python 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 79/100
维护者通常 4 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
pimutils/vdirsyncer#1242 ·
-
backlog
难度 2/5 1-3 小时 新手友好度 78/100
sagemathinc/sagebrush#2768 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
vllm-project/vllm-ascend#23791 ·
维护者通常 1 天内回复
-
priority:P2
难度 2/5 1-3 小时 新手友好度 75/100
QuantConnect/lean-cli#792 ·
维护者通常 1 天内回复