en-us_commands:reference:isetcount
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| en-us_commands:reference:isetcount [2026/09/07 23:35] – 바깥 편집 127.0.0.1 | en-us_commands:reference:isetcount [2026/09/08 00:53] (current) – 바깥 편집 127.0.0.1 | ||
|---|---|---|---|
| Line 17: | Line 17: | ||
| <code cpp> | <code cpp> | ||
| const uint8_t COUNTER_ID = 4; | const uint8_t COUNTER_ID = 4; | ||
| - | const int32_t | + | const uint8_t PRESET_BUTTON_PIN = 0; |
| + | const int32_t | ||
| void setup() { | void setup() { | ||
| Serial.begin(115200); | Serial.begin(115200); | ||
| - | IsetCount(COUNTER_ID, | ||
| } | } | ||
| void loop() { | void loop() { | ||
| - | const bool itemSensor | + | const bool presetButton |
| - | | + | |
| - | const bool done = Ictu(COUNTER_ID, | + | |
| - | | + | |
| + | | ||
| + | | ||
| + | } | ||
| + | previousButton = presetButton; | ||
| } | } | ||
| </ | </ | ||
| Line 37: | Line 41: | ||
| * 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/isetcount.1788791735.txt.gz · Last modified: by 127.0.0.1
