Revert "Modified version for running on an arduino"

This reverts commit b9612803b1a67809dbc697d3a61aa8b5a637b7df.