Files
qing bba7ee3eb4 feat(pybot): bot4cj 的 Python 迁移版(.mt 解析 + 硬件驱动 + 插件系统)
- parser: FSM 解析器与仓颉版逐语义对齐,修 S01/S02/S04/Q05
- robot/hardvars: 六类硬件变量工厂,修 r.cj:911 重名 FIXME、Q07 倒序释放
- plugin: Python 插件替代 Lua 桥接,修 S07 三级路径查找
- hd: i2c(每fd锁 Q03/S06)/spi/servo/kalman/mpu6050(S05/Q06)/speaker(S03 实声)
- modules: PCA9685 与 Lua 版逐字节对齐;ADS1115 重写(experimental);ADS1256 空桩
- tests: 42 项 pytest 全绿(Mock 总线 journal 断言)
- CLI: --dry-run / --test roundtrip / --verbose;运行时零第三方依赖
2026-08-09 18:57:03 +00:00

25 lines
710 B
Python

"""ADS1256 24 位 SPI ADC 插件 —— 对应 bot4cj/modules/ADS1256.lua(空桩)
Lua 版即为空桩(无任何实现),保持同等状态:三个入口仅记日志。
实机接入时参考 modules/SPI.py 取 fd 后经 pybot.hd.spi.transfer 实现。
"""
import logging
log = logging.getLogger("pybot.modules.ADS1256")
def build(ctx):
log.warning("ADS1256 is a stub (not implemented), build ctx: %s", ctx)
return {"result": "OK", "status": "stub"}
def call(ctx):
log.warning("ADS1256 is a stub (not implemented)")
return {"result": "OK", "status": "stub"}
def destroy(ctx):
log.warning("ADS1256 is a stub (not implemented)")
return {"result": "OK", "status": "stub"}