Arduino emulator in C++