This project was created as my Arduino Final Project. It’s a web application that lets you quickly and visually design and generate “Pokémon” data that can be inserted in the Arduino Sketch PokeFight.ino, allowing almost infinite customization and fun.
- 🎮 Configure up to two players, each with:
- A main Pokémon
- A secondary Pokémon
- 🎨 For each Pokémon, you can set:
- Name
- Type (Fire, Water, Grass, Electric, Normal)
- Color (hex code or RGB)
- HP (health points)
- 🔀 Action buttons:
- Random: assign random values
- Delete: clear that card
- 🌐 Global controls:
- Generate All Random: auto-fill every card
- Copy Code: copy the ready-to-use Arduino sketch to your clipboard
- Generate/Import ID: serialize and share your setup
- Import Data: load from camera (QR) or JSON file
- Clear: reset the entire interface
This tool emerged from the need to streamline character setup in an Arduino-based Pokémon battle game using RGB LEDs. Instead of manually editing code, you generate all constants and data structures for your Pokémon in just a few clicks.
- Clone the repo or visit the live demo:
https://arduino-poke-generator.vercel.app/ - Open the app in your browser.
- Configure your Pokémon (or click “Generate All Random”).
- Click Copy Code.
- Paste the generated code into
PokeFight.inoin after the comment// PEGAR ACÁ LO COPIADO DEL WEBSITE(Line 118). - Load to your Arduino
- Play and be happy :)
- Requires a browser with Clipboard API and
getUserMediasupport. - Grant camera permission to scan IDs via QR.
- Customize the code template in
src/utils/template.jsas needed.
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! If you have suggestions, improvements, or find bugs, please open an issue or submit a pull request.
