 // include the library code:
 #include "Wire.h"
 #include "Adafruit_LiquidCrystal.h"
+#include <EEPROM.h>
 
 // set rotary encoder pins
 #define ENC_RD	PIND	//encoder port read

    lcd.setCursor(0,1);
    if(millis() - lastM1 > 500) {
    // long push = commit to memory
    lcd.print("m1 stored");
    } else {
    // short push = qsy to memory frequency
    lcd.print("recall m1");
    }
    m1armed = false;
    lastM1 = millis();

    lcd.setCursor(0,1); 
    if(millis() - lastM2 > 500) {
    // long push = commit to memory
    EEPROM.put(eeAddressStart+sizeof(double),freq);
    lcd.print("m2 stored"); 
    } else {
    // short push = qsy to memory frequency
    EEPROM.get(eeAddressStart+sizeof(double),freq);
    lcd.print("recall m2");
    send_frequency(freq);     
    display_frequency(freq);
    }
    m2armed = false;
    lastM2 = millis();
