C++ Template Arduino investigation