User Tools

Site Tools


en-us_commands:reference:analogwritemax

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:analogwritemax [2026/09/07 21:52] – 만듦 - 바깥 편집 127.0.0.1en-us_commands:reference:analogwritemax [2026/09/08 00:53] (current) – 바깥 편집 127.0.0.1
Line 17: Line 17:
 <code cpp> <code cpp>
 void setup() { void setup() {
-  analogWriteFreq(3, 1000);+  analogWriteFreq(3, 1000);  // Set the PWM frequency of the specified output channel.
  
-  uint16_t maxValue = analogWriteMax(3);+  uint16_t maxValue = analogWriteMax(3);  // Return the maximum value available for the specified output channel.
  
   analogWrite(3, maxValue / 4);  // D46 / OC5A, approx. 25%   analogWrite(3, maxValue / 4);  // D46 / OC5A, approx. 25%
Line 43: Line 43:
   * MPAINO analog output modules may require a separate power supply and DIP switch settings.   * MPAINO analog output modules may require a separate power supply and DIP switch settings.
   * The actual voltage or current output range must match the module DIP switches, supply, wiring and input specifications of the connected equipment.   * The actual voltage or current output range must match the module DIP switches, supply, wiring and input specifications of the connected equipment.
 +
 +===== 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:ianalogwriteinit|IanalogWriteInit() 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/analogwritemax.1788785565.txt.gz · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki