fixes build on Arduino
this gives a common printf implementation on all boards, which simplifies testing, and also simplifies porting to new boards