User Tools

Site Tools


en-us_commands:reference:ianalogread

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:ianalogread [2026/09/07 21:52] – 만듦 - 바깥 편집 127.0.0.1en-us_commands:reference:ianalogread [2026/09/08 00:53] (current) – 바깥 편집 127.0.0.1
Line 21: Line 21:
  
 void loop() { void loop() {
-  int32_t percent = IanalogRead(A0, 0, 100);+  int32_t percent = IanalogRead(A0, 0, 100);  // Map the analog input value to the specified integer range.
   Serial.println(percent);   Serial.println(percent);
   delay(500);   delay(500);
Line 35: Line 35:
   * Set the MPAINO analog input module's DIP switches and wiring to match the actual input type.   * Set the MPAINO analog input module's DIP switches and wiring to match the actual input type.
   * This command performs only linear range conversion. Sensor error compensation, open-circuit detection or 4~20mA software Cut requires separate processing.   * This command performs only linear range conversion. Sensor error compensation, open-circuit detection or 4~20mA software Cut requires separate processing.
 +
 +===== Built-in Commands in the Same Category =====
 +
 +  * [[:en-us_commands:reference:ianalogreadf|IanalogReadf() View detailed description]]
  
 [[:en-us_commands:builtin|← Built-in Command List]] [[:en-us_commands:builtin|← Built-in Command List]]
  
en-us_commands/reference/ianalogread.1788785565.txt.gz · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki