Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mfr_side = "back"
- local colours = {white=0, orange=1, magenta=2, lightblue=3, yellow=4, lime=5, pink=6, grey=7, lightgrey=8, cyan=9, purple=10, blue=11, brown=12, green=13, red=14, black=15}
- local mfr_null = "black"
- function mfrOutput(colour_val)
- rs.setAnalogOutput(mfr_side,colours[colour_val])
- end
- function mfrToggleOutput(colour_val)
- rs.setAnalogOutput(mfr_side,colours[colour_val])
- sleep(0.05) --#this is required due to how the controller works, it ensures it covers a PRC clock cycle
- rs.setAnalogOutput(mfr_side,colours[mfr_togglenull])
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement