View Single Post
Old 09-05-2013, 03:27 PM   #43 (permalink)
nickdigger
EcoModding Apprentice
 
Join Date: Aug 2009
Location: terra firma
Posts: 138
Thanks: 4
Thanked 24 Times in 22 Posts
Quote:
Also thinking of being able to revert a stored EEPROM parameter or screen setting to the "factory" hard-coded default, via keypress.
I put this at the top of loadParams():**
Code:
  if (RightButton)
  {
    buttonState = buttonsUp;
    return 1;  // don't load parms from eeprom; use default compiled parms
  }
There's a similar check for LeftButton, to reset the saved tank data in the eeprom. The "prompt" for these hidden key features is the "MPGuino" startup screen, which gives you a 1.5 second delay to press (and hold) the key.


** i later removed the option, out of paranoia that i would accidentally clear my settings

Last edited by nickdigger; 09-05-2013 at 03:37 PM.. Reason: load() changed to loadParams()
  Reply With Quote
The Following User Says Thank You to nickdigger For This Useful Post:
t vago (09-05-2013)