Templated Duino class