Im new to this mod and to lua. Im trying to start with a simple program that can read redstone signals and detect their levels.
I have basic lua knowledge, knowing commands like [do], [if], [if else], [read] and [while]. A bit of boolean [True, false] and create variables.
I made a small computer with the redstone card (and the essentials like EEPROM, GPU, CPU and RAM). Its connected with red wires from red power that are connceted to a lever. I have the compat module from redpower installed.
My main question is what I need to write in the .lua file to be able to use the redstone card and what commands I need to the program detect the signal and use it for a boolean variable or something else?
Detecting and Interpretating redstone levels
in Programming
Posted
Im new to this mod and to lua. Im trying to start with a simple program that can read redstone signals and detect their levels.
I have basic lua knowledge, knowing commands like [do], [if], [if else], [read] and [while]. A bit of boolean [True, false] and create variables.
I made a small computer with the redstone card (and the essentials like EEPROM, GPU, CPU and RAM). Its connected with red wires from red power that are connceted to a lever. I have the compat module from redpower installed.
My main question is what I need to write in the .lua file to be able to use the redstone card and what commands I need to the program detect the signal and use it for a boolean variable or something else?
Thank you
Mr. Stairs