ezeio2:connections:outputs

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
ezeio2:connections:outputs [2021-09-24 22:05] andrehezeio2:connections:outputs [2025-06-11 19:30] (current) – [Analog output 4] andreh
Line 89: Line 89:
 <code javascript> <code javascript>
  
-Setoutput(4, 75); // Set a static level +   Setoutput(4, 75); // Set a static level
- }+
  
-SetOutput(4, GetField(19));  // Use a "Field" to set level +   SetOutput(4, GetField(19));  // Use a "Field" to set level
- }+
  
 // Use logic to increase level // Use logic to increase level
-{ SetOutput(4, 30);  // Set base fan speed to 30 +  
-   if((T1-T2) > FanTempDelta)  // Compare feedback value  +   if( (T1-T2) > FanTempDelta )  // Compare feedback value  
-   SetOutput(4, +5);  // Increase speed +      SetOutput(4, GetOutput(4)+5);  // Increase speed
-    +
-   +
  
 </code> </code>
  
  • ezeio2/connections/outputs.1632521134.txt.gz
  • Last modified: 2021-09-24 22:05
  • by andreh