added arduino control functions