   
 }
 
+// Write a block at a sector with 16 bytes (can do up to 4 blocks)
+void MF_WRITE(unsigned char numBlocks, unsigned char startSector, unsigned char time) {
+  BCC = checksum({ 0x00, 0x1A, CMD_WRITE, 0x01, 0x01, startSector,
+                    0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
+                    0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
+                    time }, 28);
+  unsigned char CMD[] = { STX, 0x00, 0x1A, CMD_WRITE, 0x01, 0x01, startSector,
+                          0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
+                          0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
+                          time, BCC, ETX };
+  unsigned char response[bufferSize];
+
+  // send command
+  RDM880.write(CMD, sizeof(CMD)/sizeof(CMD[0]));
+
+}
    return false;   
}

unsigned char checksum(unsigned char A[], int numElements) {
  int i = 0;
  unsigned char BCC = A[0];

  }
}

// Prints serial number to monitor, sets flag if a packet other than idle is detected
unsigned char getResponse(bool responseFlag) {
  int i = 0;
  unsigned char response[bufferSize];
