3D printer firmware written in C++