Posted 01 May 2014 - 03:22 AM
Hi there.
First off, thanks for taking the time to read my post.
I'm having a strange issue with redstone in a circuit. Basically, I have a Compucraft basic computer that I want to use to change the state of redstone below it by using two programs to toggle it on and off. The setup looks like this (The block of redstone and lamp are not part of the circuit and is only for lighting purposes):
The problem arises when I type a program to change the state of the redstone from on to off or vice versa. The redstone fails to turn on or off unless I disturb the redstone close to the computer itself:
This is how the redstone looks before and after I use my program to turn on the circuit.
However, when I remove a section of redstone, the adjacent redstone activates. Replacing the missing redstone then powers the circuit.
The same thing happens if the redstone is on and I try to turn it off.
Here is my code for the two programs. (Note: the program also displays an image on a wrapped monitor, which it successfully does)
Program to turn redstone ON
Program to turn redstone OFF
I have tried changing the position of the redstone and have tried a few other programming changes, but nothing seems to make the redstone update on its own.
Thanks again for your time.
First off, thanks for taking the time to read my post.
I'm having a strange issue with redstone in a circuit. Basically, I have a Compucraft basic computer that I want to use to change the state of redstone below it by using two programs to toggle it on and off. The setup looks like this (The block of redstone and lamp are not part of the circuit and is only for lighting purposes):
The problem arises when I type a program to change the state of the redstone from on to off or vice versa. The redstone fails to turn on or off unless I disturb the redstone close to the computer itself:
This is how the redstone looks before and after I use my program to turn on the circuit.
However, when I remove a section of redstone, the adjacent redstone activates. Replacing the missing redstone then powers the circuit.
The same thing happens if the redstone is on and I try to turn it off.
Here is my code for the two programs. (Note: the program also displays an image on a wrapped monitor, which it successfully does)
Program to turn redstone ON
redstone.setOutput( "bottom", true)
local M = peripheral.wrap("top")
local function clear()
M.clear()
M.setCursorPos(1, 1)
term.clear()
M.setTextScale(.9)
M.write("Power Restored to Powered Rail.")
M.setCursorPos(1, 2)
M.write("Access to Sector 3 Ready.")
end
Program to turn redstone OFF
redstone.setOutput( "bottom", false)
local M = peripheral.wrap("top")
local function clear()
M.clear()
M.setCursorPos(1, 1)
term.clear()
M.setTextScale(.9)
M.write("Power to Rails deactivated.")
M.setCursorPos(1, 2)
M.write("Restore for Sector 3 Access.")
end
I have tried changing the position of the redstone and have tried a few other programming changes, but nothing seems to make the redstone update on its own.
Thanks again for your time.