User Tools

Site Tools


en-us_commands:reference:analogreadinit

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:analogreadinit [2026/09/07 21:52] – 만듦 - 바깥 편집 127.0.0.1en-us_commands:reference:analogreadinit [2026/09/08 00:53] (current) – 바깥 편집 127.0.0.1
Line 20: Line 20:
  
   // Use autocomplete constants   // Use autocomplete constants
-  analogReadInit(IANALOG_SPS_250);+  analogReadInit(IANALOG_SPS_250);  // Set the analog input module's sampling rate.
 } }
  
Line 28: Line 28:
     Serial.print(ch);     Serial.print(ch);
     Serial.print(" = ");     Serial.print(" = ");
-    Serial.println(analogRead(ch));+    Serial.println(analogRead(ch));  // Read the raw analog value of the specified channel.
   }   }
 } }
Line 41: Line 41:
   * SPI communication and function processing add time, so the actual measurement SPS may be lower than the target.   * SPI communication and function processing add time, so the actual measurement SPS may be lower than the target.
   * ''analogRead()'' converts the same channel twice to prevent channel-value displacement. Include both conversion times when calculating the total channel update time.   * ''analogRead()'' converts the same channel twice to prevent channel-value displacement. Include both conversion times when calculating the total channel update time.
 +
 +===== Built-in Commands in the Same Category =====
 +
 +  * [[:en-us_commands:reference:analogread|analogRead() View detailed description]]
 +  * [[:en-us_commands:reference:analogreadavg|analogReadAvg() View detailed description]]
 +  * [[:en-us_commands:reference:analogreadavgf|analogReadAvgf() View detailed description]]
  
 [[:en-us_commands:builtin|← Built-in Command List]] [[:en-us_commands:builtin|← Built-in Command List]]
  
en-us_commands/reference/analogreadinit.1788785565.txt.gz · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki