User Tools

Site Tools


en-us_commands:reference:idigitalread

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en-us_commands:reference:idigitalread [2026/09/07 23:35] – 바깥 편집 127.0.0.1en-us_commands:reference:idigitalread [2026/09/14 20:30] (current) – external edit 127.0.0.1
Line 22: Line 22:
  
 ===== Example ===== ===== Example =====
 +
 +This example reads MPAINO-8A8R(T) input ''0'' and displays the result on output ''64''.
  
 <code cpp> <code cpp>
-void setup() { +void setup() {}
-  pinMode(0, INPUT); +
-}+
  
 void loop() { void loop() {
Line 44: Line 44:
   * A larger ''samples'' value increases the time taken by each call. ''3'' or ''5'' reads are recommended for typical input noise checks.   * A larger ''samples'' value increases the time taken by each call. ''3'' or ''5'' reads are recommended for typical input noise checks.
   * This command reads several times immediately. Use ''Ibounce()'' to remove ms-scale chatter such as mechanical switch bounce.   * This command reads several times immediately. Use ''Ibounce()'' to remove ms-scale chatter such as mechanical switch bounce.
 +
 +===== Built-in Commands in the Same Category =====
 +
 +  * [[:en-us_commands:ibounce|Ibounce() View detailed description]]
 +  * [[:en-us_commands:reference:ibounceon|IbounceOn() View detailed description]]
 +  * [[:en-us_commands:reference:ibounceoff|IbounceOff() View detailed description]]
  
 [[:en-us_commands:builtin|← Built-in Command List]] [[:en-us_commands:builtin|← Built-in Command List]]
  
en-us_commands/reference/idigitalread.1788791734.txt.gz · Last modified: by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki