|
FastArduino v1.10
C++ library to build fast but small Arduino/AVR projects
|
Set a new time::delay function for the duration of the current scope; when the scope is left, the previous time::delay function is restored.
More...
#include <fastarduino/time.h>
Public Member Functions | |
| auto_delay (const auto_delay &)=delete | |
| auto_delay & | operator= (const auto_delay &)=delete |
| auto_delay (DELAY_PTR new_delay) INLINE | |
Set new time::delay to new_delay after storing current function for later restore. More... | |
Set a new time::delay function for the duration of the current scope; when the scope is left, the previous time::delay function is restored.
Usage example:
|
inlineexplicit |
Set new time::delay to new_delay after storing current function for later restore.
| new_delay | new function pointer to replace time::delay |