Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --
- ---- Adam's Pressure Monitor
- ---- Copyright 2022 Adam Mathieson
- --
- -- Pull in Command Line Args
- args = {...}
- -- Globals
- _Side = args[1]
- _Pressure = args[2]
- _dir = "/disk10/pneumatics"
- -- File Structure Setup
- fs.makeDir(_dir.."/")
- while true do
- file = fs.open(_dir.."/currentPressure".._Pressure, "w")
- file.writeLine(string.format("%i", redstone.getAnalogInput(_Side)))
- file.close()
- -- Yield to system
- os.queueEvent("looperEvent");
- os.pullEvent();
- os.sleep(0.5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement