This project demonstrates the connection between a desktop C++ program using the 3D library threepp and an Arduino program.
Both a physical and a virtual Arduino can be used. The virtual Arduino is powered by wokwi.
The arduino source is located in /arduino_src
as a platform.io project.
The desktop app and Arduino communicates over serial using JSON. To make the virtual connection possible, com0com is utilised. On Mac socat might be an alternative. Chrome must be used.