Skip to content

Instantly share code, notes, and snippets.

@OrsoEric
Created February 16, 2019 08:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OrsoEric/81a2db0203da34b992b136bcbf6ac709 to your computer and use it in GitHub Desktop.
Save OrsoEric/81a2db0203da34b992b136bcbf6ac709 to your computer and use it in GitHub Desktop.
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