added color param to sendToArduino function