title: How to `Serial.print()` "full" hexadecimal bytes?
body: <p>I am programming <a href="http://arduino.cc/" rel="noreferrer">Arduino</a> and I am trying to <code>Serial.print()</code> bytes in hexadecimal format "the my way" (keep reading for more information).</p>
  
  <p>That is, by using the following code</p>
  
  <pre><code>byte byte1 = 0xA2;
  byte byte2 = 0x05;
  byte byte3 = 0x00;
  
  Serial.println(byte1, HEX);
  Serial.println(byte2, HEX);
  Serial.println(byte3, HEX);
  </code></pre>
  
  <p>I get the following output in the Serial Monitor:</p>
  
  <pre><code>A2
  5
  0
  </code></pre>
  
  <p>However I would like to output the following:</p>
  
  <pre><code>A2
  05
  00
  </code></pre>
  
  <p>In words, I would like to print the "full" hexadecimal value including <code>0</code>s (<code>05</code> instead of <code>0</code> and <code>00</code> instead of <code>0</code>).</p>
  
  <p>How can I make that?</p>