Working With Time
We need to take a little detour here and look at some of the basics of working with time.
This is a function that does work with our board, and they will help us work on any project that is considered time-sensitive, such as making that the scope of our controller.
The first code that we can bring in with this one is known as the delay(value).
We have seen this a few times so far, but the point of using it is that it allows us to pause the sketch we are working on for a certain amount of time.
We can add in the integer value of how long we want the sketch to pause, but keep in mind that this will be done based on milliseconds.
Then we are able to work with a second code that is going to be delayMicrosecond(value).
This is a good code to work with though it has a lot of the same functionality that we saw with the delay() function that we did before.
This one will work in microseconds rather than the milliseconds, so if you need a different time frame to work on here, this is the one to choose.