Pixel‑Pets: AI‑Generated C++ Code for IoT Pet Devices
Patch your IoT projects to use AI‑generated C++ code for device logic and stable refactoring.
Patch your IoT projects to use AI‑generated C++ code for device logic and stable refactoring.
Summary
The article chronicles the creation of Pixel‑Pets, an open‑source IoT family of pets that use a local LLM to manage biological needs and interact with other devices, all driven by AI‑generated C++ code that runs on M5Stack Core2 and CoreS3 boards. The author explains how Claude Opus 4.7 was used to write Linux system‑administration scripts, generate C++ graphics for the mini display, and produce stable, refactorable code that can adjust ear size or snout shape without breaking the UI, demonstrating unprecedented AI competence in embedded development. The project is released on GitHub, with a companion website and AI‑generated video, and the author invites the community to contribute, highlighting the shift from syntax learning to vision‑driven AI mentorship.
Key changes
- AI generated Linux sysadmin scripts and C++ graphics for Core2/3 boards.
- Stable iterations allow refactoring of drawing logic without breaking UI.
- Pixel‑Pets includes multiple variants: Muffin, Goo‑Goo, Visu, Pip, each with distinct interactions.
- The pets sync with real‑world weather and moon phases via IP‑geolocation.
- The project is 100 % open source, with source on GitHub and a website.
- AI wrote code that handles biological needs (hunger, sleep, mood) and interactions.
- The project showcases AI’s ability to produce reliable, maintainable embedded code.
- The author encourages community support and contributions.