add some old arduino code