en-us_commands:reference:filo
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en-us_commands:reference:filo [2026/09/07 23:35] – 바깥 편집 127.0.0.1 | en-us_commands:reference:filo [2026/09/14 20:30] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 14: | Line 14: | ||
| ===== Example ===== | ===== Example ===== | ||
| + | |||
| + | Send '' | ||
| <code cpp> | <code cpp> | ||
| - | uint16_t | + | uint16_t |
| - | uint16_t | + | uint16_t |
| - | uint16_t sequence | + | |
| void setup() { | void setup() { | ||
| Line 25: | Line 26: | ||
| void loop() { | void loop() { | ||
| - | | + | |
| - | const bool release | + | const char action = Serial.read(); |
| - | const bool reset = IdigitalRead(2, | + | const bool store = action == ' |
| + | const bool retrieve = action == ' | ||
| + | const bool clearBuffer | ||
| + | | ||
| - | | + | const bool ok = FILO(0, store, |
| - | | + | FILO(0, |
| - | | + | if (retrieve |
| - | if (release | + | if (retrieve && !ok) Serial.println(F("Buffer empty")); |
| - | | + | |
| - | | + | |
| - | } | + | |
| } | } | ||
| </ | </ | ||
| Line 42: | Line 43: | ||
| '' | '' | ||
| + | |||
| + | ===== Built-in Commands in the Same Category ===== | ||
| + | |||
| + | * [[: | ||
| [[: | [[: | ||
en-us_commands/reference/filo.1788791733.txt.gz · Last modified: by 127.0.0.1
