Created
February 16, 2019 08:25
-
-
Save OrsoEric/81a2db0203da34b992b136bcbf6ac709 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int main(void) | |
{ | |
//Main Loop | |
for EVER | |
{ | |
///---------------------------------------------------------------------- | |
/// LCD Display Driver | |
///---------------------------------------------------------------------- | |
// Sync the display content with the user structure | |
//If: LCD update flag | |
if (flags.lcd_update == 1) | |
{ | |
//Clear flag | |
flags.lcd_update = 0; | |
//Driver that sync the user structure with the LCD. | |
//This paradigm solve lots of timing problems of the direct call version. | |
//You can print a million time a second, and the driver still won't bug out | |
lcd_update(); | |
} //End If: LCD update flag | |
} //end main loop | |
return 0; | |
}//end main | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment