ja-jp_commands:reference:filo
差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン前のリビジョン | |||
| ja-jp_commands:reference:filo [2026/09/08 00:53] – 바깥 편집 127.0.0.1 | ja-jp_commands:reference:filo [2026/09/14 20:30] (現在) – 外部編集 127.0.0.1 | ||
|---|---|---|---|
| 行 14: | 行 14: | ||
| ===== 使用例 ===== | ===== 使用例 ===== | ||
| + | |||
| + | シリアルモニタから'' | ||
| <code cpp> | <code cpp> | ||
| - | uint16_t | + | uint16_t |
| - | uint16_t | + | uint16_t |
| - | uint16_t sequence | + | |
| void setup() { | void setup() { | ||
| 行 25: | 行 26: | ||
| void loop() { | void loop() { | ||
| - | | + | |
| - | const bool release | + | const char action |
| - | const bool reset = IdigitalRead(2, 5); // 入力を連続して複数回読み、すべて一致した場合のみ状態を更新します。HIGHとLOWが混在する場合は前の安定状態を保持します。 | + | const bool store = action == ' |
| + | const bool retrieve | ||
| + | const bool clearBuffer = action == ' | ||
| + | if (store) ++nextNumber; | ||
| - | | + | const bool ok = FILO(0, store, |
| - | | + | FILO(0, |
| - | | + | if (retrieve |
| - | if (release | + | if (retrieve && !ok) Serial.println(F("Buffer empty")); |
| - | | + | |
| - | | + | |
| - | } | + | |
| } | } | ||
| </ | </ | ||
ja-jp_commands/reference/filo.1788796396.txt.gz · 最終更新: by 127.0.0.1
