Skip to content

dmcomm/dmcomm-arduino-lib

Repository files navigation

DMComm

Arduino program and library to communicate with Digimon toys, by BladeSabre ( [email protected] ). License: MIT.

To install, check your board type below, and pick one from A-Com Flasher / Alpha Upload / "Install from Source".

Currently supports

  • A-Com and D-Com (portable)
  • P-Com (on RP2040)
  • The 3 classic prong styles with all calculation features
  • Digimon Color without calculation
  • LED feedback
  • Voltage test (t)
  • Version info (i)

Board Types

  • Almost any premade A-Com will be a Nano. Some have the "old bootloader" which requires a different flashing option.
  • Bazjo D-Com v2 (bought since Dec 2023) works as a Nano.
  • Bazjo D-Com v1 uses ATmega328PB and requires special flashing options.

Installation Tools

ACom Flasher

  • OS support: Android
  • Board support: Uno, Nano, Bazjo D-Com v1

Alpha Upload

  • OS support: Windows (from the above link); Mac (unofficially, check the 0NL1NE server)
  • Board support: Uno, Nano, Leonardo
  • Make sure to choose "DMComm Arduino" before flashing!

Install from Source

Hardware setup

  • Find the Arduino15 folder
  • ATmega32U4:
    • Increasing the serial buffer is not required
  • Nano/Uno:
    • From the Arduino15 folder, go to packages/arduino/hardware/avr/{version}
    • Create platform.local.txt containing compiler.cpp.extra_flags=-DSERIAL_RX_BUFFER_SIZE=128
    • Restart the Arduino IDE
  • Bazjo D-Com v1:
    • Install MiniCore
    • From the Arduino15 folder, go to packages/minicore/hardware/avr/{version}
    • Open boards.txt
    • Find the line 328.build.extra_flags={build.clkpr}
    • Add to the end of that line, so that it says:
      • 328.build.extra_flags={build.clkpr} -DSERIAL_RX_BUFFER_SIZE=128
    • Restart the Arduino IDE
    • From the Tools menu, select Board:MiniCore:ATmega328 and Variant:328PB (leave the other board options alone)

Installing library

  • Clone the repo into your Arduino libraries directory
  • OR Use the "Download ZIP" option on GitHub with Sketch > Include Library > Add .ZIP Library
    • If updating, you will need to delete the previous version first
  • Open the ClassicComUnit example

Other DMComm versions

This software is loosely based on dmcomm-python, but avoiding dynamic allocation (except in SerialFollower).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published