Rather than rely on sprintf or something like it, use a known implemenation of itoa.
This replaces the file with the implementation from ArduinoCore-samd which I hope avoids any licensing concerns.
There's a couple of warnings from CLang-tidy because it's now C++ rather than C but I wanted to add a straight copy to make review easier. I will submit a different PR to fix those.
Rather than rely on sprintf or something like it, use a known implemenation of itoa.
This replaces the file with the implementation from ArduinoCore-samd which I hope avoids any licensing concerns.
There's a couple of warnings from CLang-tidy because it's now C++ rather than C but I wanted to add a straight copy to make review easier. I will submit a different PR to fix those.