title: Arduino unsigned long int to char*
body: <p>I am coding on Attiny85 with IRremote and SSD1306 libraries customized.</p>
  
  <p>When receiving IR data the results are stored this way:</p>
  
  <pre><code>unsigned long                 value     // Decoded value, max 32 bits
  volatile unsigned int         *rawbuf   // Raw interval in 50uS ticks
  int                           rawlen    // Number of records in rawbuf
  </code></pre>
  
  <p>OLED display related functions are:</p>
  
  <pre><code>void printChar                (char ch)
  void printString              (char* pText)
  </code></pre>
  
  <p>I am struggling with printing the received IR value to the OLED SSD1306 screen. User is able to review and save the received code to EEPROM and hence I have tried all different conversions but I am unable to print the results.value to the screen in a way that it would display the received HEX code (for example 0xE0E040BF which is Power on in Samsung television).</p>
  
  <p>Due to lag of Serial in attiny85 I have no clue how I could debug this and get it working. Any help?</p>
  
  <p>EDIT (adding relative code):</p>
  
  <pre><code>#include "SSD1306.h"
  #include "IRremote.h"
  ...
  if (irrecv.decode(&amp;results)) {  
      dumpCode(&amp;results);        
      irsend.sendRaw(buff, results.rawlen, 38);
      oled.printString("Received IR");
      // Print received hexadecimal IR code to the OLED screen
      irrecv.enableIRIn();    
      irrecv.resume();   
  }
  </code></pre>