jchaos
Version:
module to access chaos resources
22 lines (17 loc) • 429 B
JavaScript
export function current(val,ok,bad){
this.set("current", String(val), ok, bad);
}
export function stby(val,ok,bad){
if(val){
this.cmd("mode",{'mode_type':0})
} else {
this.cmd("mode",{'mode_type':1})
}
// this.set("stby", String(val), ok, bad);
}
export function pol(val,ok,bad){
this.set("polarity", String(val), ok, bad);
}
export function readout(){
return this.get();
}