en-us_commands:reference:ictuddownstate
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en-us_commands:reference:ictuddownstate [2026/09/07 23:35] – 바깥 편집 127.0.0.1 | en-us_commands:reference:ictuddownstate [2026/09/14 20:30] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 14: | Line 14: | ||
| ===== Example ===== | ===== Example ===== | ||
| + | |||
| + | This example uses the P0 and P1 inputs and the P33 output on MPINO-8A4R(T)-S. | ||
| <code cpp> | <code cpp> | ||
| Line 24: | Line 26: | ||
| void loop() { | void loop() { | ||
| - | const bool entered = IdigitalRead(0, 5); // Read the input repeatedly and update only if all samples match. If HIGH and LOW are mixed, retain the previous stable state. | + | const bool entered = digitalRead(0) == HIGH; |
| - | const bool exited = IdigitalRead(1, 5); // Read the input repeatedly and update only if all samples match. If HIGH and LOW are mixed, retain the previous stable state. | + | const bool exited = digitalRead(1) == HIGH; |
| Ictud(COUNTER_ID, | Ictud(COUNTER_ID, | ||
| const bool rackEmpty = IctudDownState(COUNTER_ID); | const bool rackEmpty = IctudDownState(COUNTER_ID); | ||
| Line 37: | Line 39: | ||
| * If insufficient memory prevents allocation of counter state, counter commands return '' | * If insufficient memory prevents allocation of counter state, counter commands return '' | ||
| * Once created, counter state is retained while the program runs. | * Once created, counter state is retained while the program runs. | ||
| + | |||
| + | ===== Built-in Commands in the Same Category ===== | ||
| + | |||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| [[: | [[: | ||
en-us_commands/reference/ictuddownstate.1788791734.txt.gz · Last modified: by 127.0.0.1
