updated arduino code to easily switch laser configurations