Use size_t for write & print return, for non-AVR compatibility