need EXROM.h for Mega 2560

I get a compiling error, I may have the wrong file. I have an EXPROM in the library.

Used: C:\Users\bandj's\Documents\Arduino\libraries\EXROM

exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.

I'm new at this. Here is the code.



Author: Michael R. Ross

For more information, see photos and write up at:

Date Created: July 1, 2012
Last Modification: July 4, 2012

Description: This Arduino Script was written to load the initial setup into memory for the
Precision High Speed Photography setup using an Arduino Mega.

This script should only be run one time before loading the main script.

Libraries used:
You will need the EXROM Extention Library for Arduino located at:
You will also need the LCDKeypad Library for the Arduino located at:
The LiquidCrystal Library is also used and is a standard Library with the Arduino software.


// Libraries
#include <LiquidCrystal.h>
#include <LCDKeypad.h>
#include <EXROM.h>

LCDKeypad lcd;

// Set Global Variables
int RunOnce = 0;

// Create arrays to hold Variable Descriptions and Values
char* DescArray[] = {"Flash Delay", "Drop Delay", "Drop Size", "Initial Delay", "Shutter Delay", "MutiFlash", "MultiFlash Delay", "# of Drops", "Valve A Active", "Valve B Active", "Valve C Active", "Vavle D Active", "Valve Delay AB", "Valve Delay BC", "Valve Delay CD","PreFlash Trigger","Sound Threshold","Current Sound","Lightning Threshold","Current Light","IV Start Delay","IV Shutter Speed","IV Interval Secs","IV Intrval MSecs","IV Repetitions"};
float ValueArray[] = {245.0,20.0,85.0,5.0,0.0,1.0,100.0,2.0,1.0,0.0,0.0,0.0,0.0,0.0,0.0,1.0,200.0,0.0,200.0,0.0,0.0,0.0,1.0,0.0,0.0};
char* TypeArray[] = {"Millisecs","Millisecs","Millisecs","Second(s)","Second(s)","Pulses","Millisecs","Drops","0=Off","0=Off","0=Off","0=Off","Millisecs","Millisecs","Millisecs","0=Off","Dn= >Sens","Level","Dn= >Sens","Level","Seconds","Seconds","Seconds","Millisecs","0=Endless"};
float array2[sizeof(ValueArray)];
char* tval;

void setup()
lcd.begin(16, 2);
lcd.print("INITIALIZING ");
lcd.print("MEMORY... ");

void loop()
if(RunOnce == 0)
lcd.print("Saving Values");
lcd.print("To Memory...");
EXROM.write(0, ValueArray, sizeof(ValueArray));
RunOnce = 1;

lcd.print("Values Saved!");

// Read the Paramters from saved memory and update the default
// Array values with those retrieved from memory, array2, sizeof(array2));
if(array2[0] > 0)
for (int i = 0; i < 24; i++)
ValueArray = array2*;*
* } *
* }*
void UpdateDisplay()
* lcd.clear();*
* lcd.print("Current Values...");*
* delay(1000);*
* for(int k = 0; k < 25; k++)*
* {*
* lcd.clear();*
* lcd.print(DescArray[k]);*
* lcd.setCursor(0,1);*
* lcd.print(ValueArray[k]);*
* lcd.setCursor(7,1);*
* lcd.print(TypeArray[k]);*
* delay(1000);*
* }*

Start by reading read this before posting a programming question and put code tags around the code in your opening post to prevent some of it being turned into italics by the [­i] in it then post the full text of the error that you get when compiling