void GCode::doPinSet(int arduinopin, int on) { Pin p = Pin(ArduinoMap::getPort(arduinopin), ArduinoMap::getPinnum(arduinopin)); p.setDirection(true); p.setValue(on == 0 ? false : true); }