Closed zubozrout closed 6 years ago
Ok, sorry about this bug report, it seems as though it only occurs with default Ubuntu Arduino-IDE (arduino) package and works just fine with the IDE downloaded from the official site: https://www.arduino.cc/en/main/software
With the default package the solution could however be to update the DCCpp_Uno.h file to force the definition of the board it should be uploaded to.
Hello, I've just bumped into this issue even though I have the correct board set up:
In file included from PacketRegister.cpp:10:0: DCCpp_Uno.h:51:4: error: #error CANNOT COMPILE - DCC++ ONLY WORKS WITH AN ARDUINO UNO OR AN ARDUINO MEGA 1280/2560
error CANNOT COMPILE - DCC++ ONLY WORKS WITH AN ARDUINO UNO OR AN ARDUINO MEGA 1280/2560
and it seems to be relevant to Linux IDE only: http://www.trainboard.com/highball/index.php?threads/dcc-fails-to-compile-on-arduino-uno.92681/