playing with the Mesecons mod. I have the micro-controller with lamps connected to ports B/D and switches to A/C.
I'd like the lamps to come on when a switch (A) is turned on.
Code: Select all
port = {a=false, b=false, c=false, d=false}
if port.a == true then
port.b = true
port.d = true
else
port.b = false
port.d = false
end
I'd appreciate any advice.