Arduinoify the scary C++