void InitEEpromFactory(void){ EEPROM.put(0,205); // brightness EEPROM.put(1,10.00f); // LowVoltage_Cal EEPROM.put(5, 1.10f); // Vref_Cal EEPROM.put(9, 1.00f); // Ubat_Cal EEPROM.put(15, 1); // multipulse EEPROM.put(18, 30); // multidelay EEPROM.put(20, 1); // autopulse ON/OFF => "1" = autopulse EEPROM.put(21, 0); // pulsescale => 1 = 999 / 0 = 50 bargraph limits....located in "Spot_Welder" EEPROM.put(22, 0); // voltage warning ["0" = warning OFF] EEPROM.put(23, 1.00f); // Ampere_Cal EEPROM.put(27, 1); // preheat on/off => 0 = off EEPROM.put(28, 12); // preheat_time in % EEPROM.put(29, 12); // pulseduration EEPROM.put(37, 1); // pulse_per_rev EEPROM.put(38, 100); // autodelay display.clearDisplay(); // clears the screen and buffer display.setTextSize(1); display.setCursor(3,0); display.println ("Factory Reset"); show_EEprom_menu (); } //============================================================ void InitEEpromUser(void){ EEPROM.put(0,205); // brightness EEPROM.put(15, 1); // multipulse EEPROM.put(18, 30); // multidelay EEPROM.put(20, 1); // autopulse ON/OFF => "1" = autopulse EEPROM.put(21, 0); // pulsescale => 1 = 999 / 0 = 50 bargraph limits....located in "Spot_Welder" EEPROM.put(22, 0); // voltage warning ["0" = warning OFF] EEPROM.put(27, 1); // preheat on/off => 0 = off EEPROM.put(28, 12); // preheat_time in % EEPROM.put(29, 12); // pulseduration EEPROM.put(37, 1); // pulse_per_rev EEPROM.put(38, 100); // autodelay EEPROM.put(41, 0); // reset spotweldcount display.clearDisplay(); // clears the screen and buffer display.setTextSize(1); display.setCursor(12,0); display.println ("User Reset"); show_EEprom_menu (); } //============================================================ void show_EEprom_menu (void){ display.drawLine(0,8, 83, 8, BLACK); // Line for title display.setTextSize(2); // setTextSize(2) display.setCursor(11,17); display.println ("Saved"); // show "Saved" confirmation display.display(); while(!digitalRead(SW1)){} delay(100); tone(A1,1000,100); delay(1000); progCount = 18; // select "Exit" option show_SELECT_menu_6(); // which is in show_SELECT_menu_6 [Setup_menu] progSelect(); // draw frame for "Exit" option }