back to FEHUtility
Description
This function causes your program to wait for a certain period of time. If you send it an integer value, it waits for a time in milliseconds; if you send it a floating-point number, it waits for a time in seconds.
Syntax
.Sleep( int milliseconds )
.Sleep( float seconds )
.Sleep( double seconds )
Parameters
milliseconds: an integer that specifies the number of milliseconds to wait for.
seconds: a floating-point value that specifies the number of seconds to sleep for.
Returns
None.
Examples
#include <FEHUtility.h>
#include <FEHLCD.h>
int main(void)
{
//Write "Hello World" to screen every 5.25 seconds indefinitely
while(1)
{
LCD.WriteLine("Hello World");
Sleep(5.25);
}
}