/PriUint64

Print uint64_t in Arduino

Primary LanguageC++ISC LicenseISC

PriUint64.h for Arduino

GitHub Workflow status GitHub code size

This library allows printing uint64_t in Arduino.

#include <PriUint64.h>

void
setup()
{
  Serial.begin();
  Serial.println();

  uint64_t x = 0x9aa567b200;
  Serial.println(PriUint64<HEX>(x));
}

void
loop()
{
}

Streaming 6 Integration

This library can integrate with Streaming 6 library. To enable this integration, #include <Streaming.h> before including this library.

#include <Streaming.h>
#include <PriUint64.h>

void
setup()
{
  Serial.begin();
  Serial.println();

  uint64_t x = 0x9aa567b200;
  Serial << x << endl;
  Serial << _HEX(x) << endl;
}

void
loop()
{
}