外设代理
- 将 pe 附着在 cc:t 外设上
- 使用 getPeripheral 获取外设对象
OP
不需要线缆,无视距离,无重量
local pe = require("ccpe.pe")
local monitor = pe.getPeripheral(10) -- 获取频道为10的pe附着的外设
assert(monitor , "未找到外设")
下一步
- 无线红石详细文档 — 发送和接收红石信号
OP
不需要线缆,无视距离,无重量
local pe = require("ccpe.pe")
local monitor = pe.getPeripheral(10) -- 获取频道为10的pe附着的外设
assert(monitor , "未找到外设")