fixed missing Synopsys in Redstone
This commit is contained in:
parent
7861135c05
commit
b60c9774e1
@ -10,17 +10,17 @@ class Redstone extends CLIAppBase{
|
||||
registerSyncSubcommand("on", (args)-> {
|
||||
Peripheral.instance.getRedstone(args[0]).setOutput(true);
|
||||
return true;
|
||||
});
|
||||
},"<side>");
|
||||
|
||||
registerSyncSubcommand("off", (args)-> {
|
||||
Peripheral.instance.getRedstone(args[0]).setOutput(false);
|
||||
return true;
|
||||
});
|
||||
},"<side>");
|
||||
|
||||
registerSyncSubcommand("get", (args)-> {
|
||||
var value = Peripheral.instance.getRedstone(args[0]).getAnalogInput();
|
||||
handle.write("Analog input: " + value);
|
||||
return true;
|
||||
});
|
||||
},"<side>");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user