add io brick, misc fixes

This commit is contained in:
Redo
2024-06-22 18:17:21 -06:00
parent 38351b8a3e
commit a25f184c94
21 changed files with 12570 additions and 46 deletions

View File

@@ -0,0 +1,12 @@
return function(gate, argv)
local arg = argv[1]
for i = 1, #arg, 2 do
local d = arg:sub(i, i+1)
local v = tonumber(d, 16) or 0
if #gate.queueIn < 2048 then
table.insert(gate.queueIn, 1, v)
end
end
Gate.queue(gate, 0)
end