I had to change LCD_COMMANDUS to 2000 from 1500 for best performance
not to be unexpected, the LCD timing defines need to match the display in use. some are very slow


Code:
I just did not understood what all these ff's at the end of the code do.
not pretty I agree but its one simple way to erase the eeprom at run time, hence "factory" as in factory reset