George Boole

George Boole (/bl/; 2 November 1815 – 8 December 1864) was an English mathematician, educator, philosopher and logician. He worked in the fields of differential equations and algebraic logic, and is best known as the author of The Laws of Thought (1854) which contains Boolean algebra. Boolean logic is credited with laying the foundations for the information age.[3] Boole maintained that:

George Boole
George Boole color.jpg

Boole, c. 1860

Born 2 November 1815
LincolnLincolnshire, England
Died 8 December 1864(aged 49)
BallintempleCork, Ireland
Education Bainbridge’s Commercial Academy[1]
Era 19th-century philosophy
Region Western philosophy
School Mathematical foundations of computing
Institutions Lincoln Mechanics’ Institute[2]
Queen’s College, Cork

Main interests

Mathematics, LogicPhilosophy of mathematics

Notable ideas

Boolean algebra

No general method for the solution of questions in the theory of probabilities can be established which does not explicitly recognise, not only the special numerical bases of the science, but also those universal laws of thought which are the basis of all reasoning, and which, whatever they may be as to their essence, are at least mathematical as to their form.[4]

https://en.wikipedia.org/wiki/George_Boole

(MMV) Reference · ESP8266 Arduino Core

Timing and delays

millis() and micros() return the number of milliseconds and microseconds elapsed after reset, respectively.

delay(ms) pauses the sketch for a given number of milliseconds and allows WiFi and TCP/IP tasks to run. delayMicroseconds(us) pauses for a given number of microseconds.

Remember that there is a lot of code that needs to run on the chip besides the sketch when WiFi is connected. WiFi and TCP/IP libraries get a chance to handle any pending events each time the loop() function completes, OR when delay is called. If you have a loop somewhere in your sketch that takes a lot of time (>50ms) without calling delay, you might consider adding a call to delay function to keep the WiFi stack running smoothly.

There is also a yield() function which is equivalent to delay(0). ThedelayMicroseconds function, on the other hand, does not yield to other tasks, so using it for delays more than 20 milliseconds is not recommended.

Source: Reference · ESP8266 Arduino Core