This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
President741's profile picture

Redstone API - Read the power of a signal

Started by President741, 19 March 2015 - 05:26 PM
President741 #1
Posted 19 March 2015 - 06:26 PM
Hey,

is it possible to get the power of a redstone signal? I found some forum post saying it isn't possible but they are older than 1 year.

Thank you!
Lyqyd #2
Posted 19 March 2015 - 06:35 PM
It depends on your version of ComputerCraft. If your version includes it, use redstone.getAnalogInput(side), which returns the power level value (0-15).
President741 #3
Posted 19 March 2015 - 08:15 PM
It works, thank you!