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.

16 lines
317 B

  1. -- This file takes as input a script and a label
  2. -- it will ask the local eeprom machine to flash it to an eeprom
  3. require("webflash")
  4. local args = {...}
  5. print("Reading " .. args[1])
  6. local file = assert(io.open(args[1], "rb"))
  7. local bios = file:read("*a")
  8. file:close()
  9. computer.beep(100)
  10. webflash(bios, args[2])