ESP32 NEON OS
An ESP32 display project involving OLED display.
Parts and sourceBefore you start
Check the exact OLED display configuration against the upstream wiring or parts list.
Upstream README

ESP32 NEON OS
A modular virtual pet and utility OS for the ESP32
Gallery
![]() |
![]() |
| Physical build | Virtual pet |
![]() |
![]() |
| Dragon wallpaper | Wiring layout |
About
ESP32 NEON OS is a complete, self-contained operating system for the ESP32 microcontroller. It combines a radial home menu, a suite of utility apps, classic games, and a fully-featured virtual pet inspired by the open-source Rust project Catode32.
The system runs on any standard ESP32 with 4 MB flash, requiring only an SSD1306 OLED display and four tactile push buttons. Everything is written in C++ using the Arduino framework.
🆕 Lite Branch v1 — A stripped-down, power-efficient variant focused on games, low SRAM usage, and fast boot. See the Lite Branch section below.
Tech Stack
| C++ | Arduino | Rust |
| Language | Framework | Port Source |
Features
| Category | Feature | Description |
|---|---|---|
| Interface | Radial Home Menu | Smooth rotating icon carousel |
| Interface | Non-blocking Input | Debounced buttons with long-press |
| Interface | Brightness Control | 4 discrete levels in flash |
| Interface | Screen Flip | 180° rotation support |
| Interface | Idle Sleep | Configurable timeout (5s–Never) |
| Interface | Wallpaper System | Static and animated boot wallpapers |
| Utilities | Persistent Settings | All preferences saved to NVS |
| Utilities | Factory Reset | Hold-to-confirm flash wipe |
| Utilities | Vault | 13 quotes with scrolling view |
| Utilities | Profile | Personal info with auto-scroll |
| Utilities | Game of Life | Conway's automaton with editing |
| Utilities | Screensaver | DVD Bounce, Radar, Concentric |
| Utilities | Timer | 5 presets with animated countdown |
| Pet App | 18-Stats System | Full stat-based simulation |
| Pet App | 26 Behaviors | Zoomies, Kneading, Hunting, etc. |
| Pet App | Complex Gardening | 3 pots, 4 seeds, 8 growth stages |
| Pet App | Dynamic Weather | Clear, Cloudy, Rain, Snow |
| Pet App | In-Game Store | Buy items with earned coins |
| Pet App | 3 Minigames | Dino Runner, Tetris, Snake |
| Pet App | NVS Persistence | Full state saved to flash |
Applications
| # | App | Description |
|---|---|---|
| 1 | Vault | 13 curated quotes with scroll view |
| 2 | Profile | Personal info with auto-scroll |
| 3 | Life | Conway's Game of Life with cell editing |
| 4 | Screensaver | 3 burn-in prevention modes |
| 5 | Timer | Pomodoro timer with animated ring |
| 6 | Sleep | Manual display off until button press |
| 7 | Cat Pet | Flagship virtual pet application |
Games
| Game | Description | Rewards |
|---|---|---|
| Dino Runner | Endless runner with jumping and ducking | Coins, Focus, Fitness |
| Tetris | Block-stacking with hard drop and levels | Coins, Focus, Playfulness |
| Snake | Smooth snake with particles and shake | Coins, Playfulness, Sociability |
| Space Shooter | Vertical shooter with parallax stars | — |
| Pong | Classic paddle game with difficulty levels | — |
Wallpapers
| Wallpaper | Type | Details |
|---|---|---|
| Tanjiro | Static | Monochrome bitmap rendered at boot |
| Cat Night | Animated | Ear twitch, tail sway, twinkling stars, drifting clouds |
Select from Settings → Wallpaper. Saved to NVS.
Hardware Requirements
| Component | Specification | Qty |
|---|---|---|
| Microcontroller | ESP32 (4MB flash) | 1 |
| Display | SSD1306 OLED, 128x64, I2C | 1 |
| Buttons | Tactile push, normally open | 4 |
| Switch | SPST toggle (battery) | 1 |
| Battery | LiPo 3.7V (optional) | 1 |
| Wires | Jumper wires (M-F) | ~12 |
Wiring Layout
Display (I2C):
| SSD1306 | ESP32 |
|---|---|
| VCC | 3V3 |
| GND | GND |
| SDA | GPIO 21 |
| SCL | GPIO 22 |
Buttons (internal pull-ups):
| Button | ESP32 Pin |
|---|---|
| UP | GPIO 32 |
| DOWN | GPIO 33 |
| LEFT | GPIO 27 |
| RIGHT | GPIO 26 |
Corrected Wokwi Diagram — Buttons and OLED wired cleanly, no overlapping routes:
Fixed wiring layout — buttons in a row, OLED to the right, GND shared via GND.1
Lite Branch v1
Source: github.com/soumyajitxedu/ESP32-NEON-OS/tree/main/lite
File:lite/v1.cpp
A single-file, power-optimized rewrite of NEON OS. Designed for classroom use, low battery drain, and maximum game performance.
What's different
| Full Build | Lite v1 | |
|---|---|---|
| CPU | 240 MHz | 80 MHz (lower power) |
| WiFi | Present | Disabled (no WiFi stack) |
| Apps | 7 (Vault, Profile, Life, etc.) | 2 (Timer, Sleep) |
| Games | 3 | 5 (Shooter, Pong, Dino, Tetris, Snake) |
| Wallpapers | 2 (Tanjiro + Cat Night) | 1 (Cat Night) |
| Boot time | ~2 s | ~1.2 s |
| SRAM footprint | Full Cat Pet simulation | Stripped (no pet, no vault) |
| Self-repair | None | Auto-fix on low heap |
| Diagnostics | Basic | Full (heap, battery, loop, logs) |
| Logs | None | 24-entry ring buffer |
| Boot counter | None | Auto-cleanup every 12 boots |
What Lite keeps
- All 5 games — Space Shooter, Pong (with Easy/Medium/Hard), Dino, Tetris, Snake.
- 8×8 PROGMEM icons for every menu entry.
- Battery monitoring via ADC (pin 34).
- Diagnostics — 3 pages: Memory, CPU, Battery.
- Event logs — boots, game starts, memory fixes, reboots.
- Memory tools — manual auto-fix, clear logs, wipe tmp NVS.
Bug fixes in Lite v1
- Shooter: health clamped (never negative), fire on rising edge only, bullets spawn at ship nose, collision uses full bullet height.
- Pong: no double-scoring, difficulty scaling added.
- Snake: capped at 100 segments, no particles/shake.
What Lite removes
- Cat Pet (all sprites, simulation, icons).
- Vault, Profile, Life, Screensaver.
- Animated wallpapers.
- Orbit home menu animation.
- WiFi stack entirely.
Libraries
| Adafruit SSD1306 | Adafruit GFX | Wire |
| Preferences | math.h | — |
| Library | Purpose |
|---|---|
| Adafruit SSD1306 | OLED display driver |
| Adafruit GFX | Graphics primitives |
| Wire | I2C communication |
| Preferences | NVS flash storage |
| math.h | Sine/cosine for animations |
Install all via Arduino IDE → Manage Libraries.
Setup Instructions
# 1. Clone the repository
git clone https://github.com/soumyajitxedu/ESP32-NEON-OS.git
2. Install Arduino IDE and add ESP32 board support:
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
3. Select board: ESP32 Dev Module
4. Install required libraries via Library Manager
5. Open Catode_NEON_ESP32.ino (full) or lite/v1.cpp (Lite)
6. Configure GPIO pins if wired differently
7. Upload to your ESP32
8. First boot: Follow the adoption scene to select your cat (full build only)
Contributions & Credits
| Contribution | Link |
|---|---|
| Original Project | moonbench/catode32 |
| Secondary Reference | Mrmad092/Codes |
| This Repository | soumyajitxedu/ESP32-NEON-OS |
| Lite Branch | lite/v1.cpp |
Dragon wallpaper assets sourced from Pinterest.
AI Models & Agents
| Models | Agents |
|---|---|
| DeepSeek V4 | GPT Luna 6 |
| Claude Sonnet 5 | Sonnet 5.5 Agent |
| Claude Sonnet 5.5 | Gemini Pro 3.1 Agent |
Development Timeline
| Milestone | Date |
|---|---|
| Project Started | August 24, 2026 |
| First Working Build | September 15, 2026 |
| Cat Pet Integration | September 28, 2026 |
| Complex Behaviors & Gardening | October 1, 2026 |
| Scene Integration & Polish | October 4, 2026 |
| Lite Branch v1 | October 11, 2026 |
| Total Active Development | 8–12 hours |
Built with C++, Arduino, and AI assistance
From August 24 to October 11, 2026
License
Provided as-is for educational and hobbyist use. All original Catode32 assets remain property of their respective creators.
This version is under preview. Both v3.3 (full build) and Lite v1 are currently in preview state. Known issues include:
Bugs in various features
Optimization issues
Game errors and edge-case crashes
Please consider this before installing. Feedback, bug reports, and pull requests are welcome. Stability is not guaranteed — treat both branches as works-in-progress.
GitHub: soumyajitxedu/ESP32-NEON-OS · Lite: main/lite



