Move Arduino specific code to arduino.hpp