Hello there. I made a small little code that would turn on and off a wireless reciever from WR-CBE Logic. It used to work and then it just stopped. Is there something missing?
local term = require("term")
local component = require("component")
local rs = component.redstone
print("Enter Freq")
term.write("Freq: ")
x1 = io.read()
freq = tonumber(x1)
rs.setWirelessFrequency(freq)
rs.setWirelessOutput(true)
os.sleep(3)
rs.setWirelessOutput(false)
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Hello there. I made a small little code that would turn on and off a wireless reciever from WR-CBE Logic. It used to work and then it just stopped. Is there something missing?
local term = require("term") local component = require("component") local rs = component.redstone print("Enter Freq") term.write("Freq: ") x1 = io.read() freq = tonumber(x1) rs.setWirelessFrequency(freq) rs.setWirelessOutput(true) os.sleep(3) rs.setWirelessOutput(false)Link to post
Share on other sites