The NanoBoy Library is an open-source C++ library developed by Mikrotronics Pakistan to make embedded systems programming fun, visual, and beginner-friendly.
Designed for the NanoBoy handheld console — based on the Arduino Nano, OLED display, buttons, buzzer, and LED — this library allows students, teachers, and hobbyists to create complete games and user interfaces with just a few lines of code.
The NanoBoy Library abstracts complex hardware interactions into simple, readable functions that handle:
-
Display graphics: Draw lines, circles, rectangles, text, sprites, and tile maps.
-
Input control: Read and debounce buttons (Up, Down, Left, Right, A, B).
-
Sound output: Play tones and short melodies through the buzzer.
-
LED and feedback: Light up events or collisions for game response.
-
Sprite and collision system: Simplify game logic and animations.
-
Text utilities: Print numbers, strings, and formatted data easily.
With the NanoBoy Library, you can develop:
-
Classic games such as Pong, Snake, Breakout, and Space Invaders
-
Puzzle and educational apps
-
Interactive demos and custom dashboards
Fully compatible with Adafruit SSD1306 and Adafruit SH1106 OLED displays, it automatically adapts to both 0.96-inch and 1.3-inch screens via compile-time configuration.
The NanoBoy Library is free for personal and educational use, with all examples open to modify, share, and learn from.
➤ Source code: https://github.com/ameriqbalqureshi/nanoboy
➤ License: Free for educational and hobby use. Preserve the copyright notice.





Reviews
There are no reviews yet.