OpenComputers Von Neumann Machine Programs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
410 B

local computer = computer or require("computer")
local net = net or require("net")
local function webflash(bytes, label)
if label == nil then
net.broadcast(10, "eeprom-flash", bytes)
else
net.broadcast(10, "eeprom-flash", bytes, label)
end
computer.beep(200)
local pkt, err = net.recv{10}
computer.beep(1000)
return pkt.data[1], tostring(pkt.data[2])
end