A function to handle multiple datatypes

Interesting explanation, pYro_65.

This compiles, BTW, and does not use a void pointer:

template <typename T> void sendAnything (const T& value)
  {
  const byte* p = (const byte*) &value;
  for (unsigned int i = 0; i < sizeof value; i++) 
      Serial.write (*p++);
  }  // end of sendAnything

I got rid of the "packet stuffing" part but you can put that back if you want. In fact the EEPROMAnything file, described here also works if you remove the void cast.