I'm one of the developers of https://github.com/keyboardio/Kaleidoscope - We've ended up putting together a 'virtual' Arduino core (https://github.com/keyboardio/Kaleidoscope-Bundle-Keyboardio...) that compiles to native code, so that we can run a simulator and test suites with gtest and gmock. (https://github.com/keyboardio/Kaleidoscope/tree/master/testi... / https://github.com/keyboardio/Kaleidoscope/runs/1632368671?c... ) It's super-useful, but a browser-based sim might be even better for this.