   return f;
 }
 
-void storeFileInRegister(String file, long freq){
+void storeByte(byte one_byte){
   int register_address = 69; 
   
-  // Change this if 1st or 2nd bit is relevant, etc.
-  for (int i = 1; i <= 250; i++) {
-      Wire.beginTransmission(register_address); // open I2C communication to intended receiver
-      //Wire.setClock(freq);
-      Wire.write( (byte) (file.charAt(i)) );   // sends the string (which is the file contents)
-      // sleep 1/frequency
-      Wire.endTransmission(); // end I2C communcation.
-  }  
+  Wire.beginTransmission(register_address); // open I2C communication to intended receiver
+  Wire.write( one_byte );   // sends the string (which is the file contents)
+  Wire.endTransmission(); // end I2C communcation.
+  
+  bytes_to_store--;
 }
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////////////

    
    // save message sent from PC to STRING c.
    String c = Serial.readString();
    
    if(c.length()< 7){ 
      Serial.println("Robot input too short");


int  lastSeqNo;
bool done;

bool bytes_to_store;

// Encoder Board Variables
#define ROTARY_SLAVE_ADDRESS 5
