test code for running on arduino