Monthly Archives: June 2012

Important Bug-Fix Update to NmraDcc Library

IMPORTANT: I introduced a major bug with the NmraDcc library when I added the Mega 1280/2560 support as it broke the Mega168 support and it took me hours to figure out why my code, that has worked for years, suddenly stopped working on my Mega168 dev board.

To work around the problem of how best to support multiple AVR MPUs, I have refactored the library to add a new pin() method that lets you explicitly define the External Interrupt (INTx), the associated Arduino Pin to use and to enable the Pull-up or not. I’ve updated the example to show the new usage.

If you’re using the NmraDcc library and you sketch has suddenly stopped working after you updated to the 2012-06-10 release, you should download the update from here and not use the 2012-06-10 release.

LocoNet Throttle and Mega 1280/2560 Support Added

LocoNet Throttle Terminal

LocoNet Throttle Terminal example sketch screenshot

A new version of the library is now available to download as a ZIP file in the downloads section: REMOVED due to a major bug.

This version includes:

  • Support the Mega1280/2560 in the NmraDcc library
  • Support for LocoNet Throttles has been added to the LocoNet library and a new LocoNetThrottle example has been added that demonstrates a simple throttle using a ANSI Serial Terminal Emulator like Putty.