722 B
722 B
Oscilloscope
oscilloscope with customizable trigger and polling rate.
Setup
- Open the script in the editor
- Set the side wich the redstone signal will be read from
- Set the interval at which the signal will be polled (setting it below 0.05 will not give more resolution as this is the tickspeed)
- (Optional) Customize the trigger function to trigger when you want it to (see examples below).
Example triggers
Trigger when receiving full signal:
local trigger = function(previous, current)
return current == 15
end
Triggers when the difference in the measured signals is more than positive 7:
local trigger = function(previous, current)
return (current - previous) > 7
end