separated code for initial tests on microcontroller