title: Convert String to HEX on arduino platform
body: <p>I am doing a small parser that should convert a string into an Hexadecimal value,I am using arduino as platform but I am getting stack with it.</p>
  
  <p>My string is <code>data = "5449"</code>
   where each element is an char, so I would like to translate it to a HEX value like <code>dataHex = 0x54 0x59</code>, and finally those values should be translate to ASCII as <code>dataAscii= TI</code> </p>
  
  <p>How can I do this?</p>
  
  <p>I was thinking of splitting it into an char array with <code>dataCharArray = 54 49</code> and later converting those values to the chars T and I, but I am not sure whether or not that is the best way.</p>
  
  <p>Thanks in advance,</p>
  
  <p>regards!</p>