User Tools

Site Tools


en-us_commands:reference:ianalogwriteinit

Differences

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

Link to this comparison view

Next revision
Previous revision
en-us_commands:reference:ianalogwriteinit [2026/09/07 21:52] – 만듦 - 바깥 편집 127.0.0.1en-us_commands:reference:ianalogwriteinit [2026/09/14 20:30] (current) – external edit 127.0.0.1
Line 14: Line 14:
  
 ===== Example ===== ===== Example =====
 +
 +This example uses MPAINO-8A8R(T) with a Y output module and **Analog Output Module → Y** selected. It sets CH0 to a 0–1000 range and outputs its midpoint.
  
 <code cpp> <code cpp>
-IanalogWriteInit(0, 1000, 0, false);+void setup() { 
 +  IanalogWriteInit(0, 1000, 0, false);  // Set Y module CH0 to a 0–1000 range. 
 +
 + 
 +void loop() { 
 +  IanalogWrite(0, 0, 1000, 500);  // Output the midpoint of the configured range. 
 +  delay(500); 
 +}
 </code> </code>
  
Line 27: Line 36:
   * ''analogWriteInit()'', ''analogWriteFreq()'' and ''analogWriteMax()'' are for Y analog output channels and must not be used for high-speed pulse channels ''20~31''.   * ''analogWriteInit()'', ''analogWriteFreq()'' and ''analogWriteMax()'' are for Y analog output channels and must not be used for high-speed pulse channels ''20~31''.
   * Do not use high-speed pulse GPIO numbers ''130~141'' with ''analogWrite()''.   * Do not use high-speed pulse GPIO numbers ''130~141'' with ''analogWrite()''.
 +
 +===== Built-in Commands in the Same Category =====
 +
 +  * [[:en-us_commands:reference:analogwriteinit|analogWriteInit() View detailed description]]
 +  * [[:en-us_commands:reference:analogwritefreq|analogWriteFreq() View detailed description]]
 +  * [[:en-us_commands:reference:analogwritemax|analogWriteMax() View detailed description]]
 +  * [[:en-us_commands:reference:ianalogwrite|IanalogWrite() View detailed description]]
 +  * [[:en-us_commands:reference:ianalogwritef|IanalogWritef() View detailed description]]
  
 [[:en-us_commands:builtin|← Built-in Command List]] [[:en-us_commands:builtin|← Built-in Command List]]
  
en-us_commands/reference/ianalogwriteinit.1788785566.txt.gz · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki