Skip to content

Commit f9f1c8a

Browse files
Update mdbook/src/08-inputs-and-outputs/polling.md
Co-authored-by: Daniel Egger <daniel@eggers-club.de>
1 parent 43fd1e9 commit f9f1c8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mdbook/src/08-inputs-and-outputs/polling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ This method of repeatedly checking inputs in a loop is called polling. When we
1010

1111
Polling is simple but allows us to do interesting things based on the external world. For all of our device's inputs, we can "poll" them in a loop, and respond to the results in some way, one by one. This kind of method is very conceptually simple and is a good starting point for many projects. We'll soon find out why polling might not be the best method for all (or even most) cases, but let's try it out first.
1212

13-
>> **Note** "Polling" is often used on two levels of granularity. At one level, "polling" is used to refer to asking (once) what the state of an input is. At a higher level, "polling", or perhaps "polling in a loop", is used to refer to asking (repeatedly) what the state of an input is in a simple control flow like the one we used above. This kind of use of the word to refer to a control flow is used only in the simplest of programs, and seldom used in production (it's not practical as we'll soon see), so generally when embedded engineers talk about polling , they mean the former, i.e. to ask (once) what the state of an input is.
13+
>> **Note** "Polling" is often used on two levels of granularity. At one level, "polling" is used to refer to asking (once) what the state of an input is. At a higher level, "polling", or perhaps "polling in a loop", is used to refer to asking (repeatedly) what the state of an input is in a simple control flow like the one we used above. This kind of use of the word to refer to a control flow is used only in the simplest of programs, and seldom used in production (it's not practical as we'll soon see), so generally when embedded engineers talk about polling, they mean the former, i.e. to ask (once) what the state of an input is.

0 commit comments

Comments
 (0)