ezeio2:scriptref:setoutput

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revisionBoth sides next revision
ezeio2:scriptref:setoutput [2019-06-15 22:49] – created andrehezeio2:scriptref:setoutput [2019-06-15 22:50] andreh
Line 10: Line 10:
  
 Directly set the value/state of a native ezeio output. The output value is always in percent , 0-100. For digital outputs, any value 50 and higher will set the output to ON (100%). Directly set the value/state of a native ezeio output. The output value is always in percent , 0-100. For digital outputs, any value 50 and higher will set the output to ON (100%).
 +
 +This command operates the output immediately.
  
 Output 1-4 are the on-board ezeio outputs.\\ Output 1-4 are the on-board ezeio outputs.\\
Line 30: Line 32:
    SetOutput(4, 31);   // Set the on-board analog output to 3.1V.    SetOutput(4, 31);   // Set the on-board analog output to 3.1V.
        
-   SetOutput(DVC2+3, 100); // set output on device 2 to ON.+   SetOutput(DVC2+4, 100); // Set output on the second I/O expander to ON.
 </code> </code>
  
  • ezeio2/scriptref/setoutput.txt
  • Last modified: 2019-09-02 21:41
  • by andreh