added more arduino test code
separated shift out