Skip to content

hotdropper/AmiiBuddy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AmiiBuddy

Initially started from Wifiibo, but has since been radically changed. It gave me an "arduino ready" copy of amiitool to use.

Uses M5ez for the user interface.

See it in action from my preview post on reddit.

General info

Hardware Pieces:

How to make your own

  1. 3D Print 1x enclosure/M5Stack-PN532-Adapter.stl and 2x enclosure/M5Stack-PN532-top.stl.
  2. Buy the things.
  3. Put the things together.
  4. Put the amiibo files, powersaves, and key in the right places on an SD card.
    • amiibo files in /library, sub directories are encouraged.
    • powersaves in /powersaves, sub directories are not needed.
    • key in /keys/retail.bin
  5. Put the latest release bin on the SD at /firmware.bin.
  6. Put SD card into the M5Stack Core, and power it up.
  7. Use the stock startup menu to select /firmware.bin to load.
  8. Go to Settings > Re-initialize database to seed your database.
  9. Enjoy!

Compiling AmiiBuddy

  1. Download the repo
  2. Install PlatformIO
  3. Run a PlatformIO upload to compile and set up the environment
  4. Edit ESP32/main.cpp and increase usStackDepth from 8192 to 16384.
  5. Run one more upload.

Must use low SPIFF partitions

Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [=         ]  10.7% (used 56832 bytes from 532480 bytes)
Flash: [=======   ]  72.9% (used 1432974 bytes from 1966080 bytes)

Edit ESP32/main.cpp

Increase usStackDepth to 10240 from 8192

Memory management seems to be working

During a full rebuild...

src/m5stack/classes/AmiiboDatabaseManager.cpp:162 operator()(): Item counter:  368
src/m5stack/classes/AmiiboDatabaseManager.cpp:163 operator()(): File count:  751
src/m5stack/utils.cpp:159 printHeapUsage(): Heap usage:  140440 of 318924 (44.02% free)
src/m5stack/classes/AmiiboDatabaseManager.cpp:174 operator()(): Processing file:  /library/...
src/m5stack/utils.cpp:159 printHeapUsage(): Heap usage:  140440 of 318924 (44.02% free)
...
src/m5stack/classes/AmiiboDatabaseManager.cpp:162 operator()(): Item counter:  750
src/m5stack/classes/AmiiboDatabaseManager.cpp:163 operator()(): File count:  751
src/m5stack/utils.cpp:159 printHeapUsage(): Heap usage:  141096 of 319132 (44.20% free)
src/m5stack/classes/AmiiboDatabaseManager.cpp:174 operator()(): Processing file:  /library/...
src/m5stack/utils.cpp:159 printHeapUsage(): Heap usage:  141096 of 319132 (44.20% free)

About

Application and supporting library to manage amiibos using an ESP8266

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 57.2%
  • C 37.2%
  • Processing 4.3%
  • Shell 1.0%
  • CMake 0.2%
  • TSQL 0.1%