Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SAMD21 Compatibility with Serial.print #28

Open
ckaraviotis opened this issue Jun 30, 2017 · 2 comments
Open

SAMD21 Compatibility with Serial.print #28

ckaraviotis opened this issue Jun 30, 2017 · 2 comments

Comments

@ckaraviotis
Copy link

IRLibDecodeBase uses Serial.print statements throughout to log information to the console.

In the SAMD21 M0 board, the method for printing to the USB console is exposed via SerialUSB.print.

As a result of this, when I tested any of the decode examples (using decoder.dumpResults) the arduino became unresponsive.

I found a quick fix by adding #define Serial SERIAL_PORT_USBVIRTUAL to the IRLibDecodeBase.cpp file, which makes all the print statements work OK.

This might need to be added to other files wrapped in an #if

@cyborg5
Copy link
Owner

cyborg5 commented Jun 30, 2017

What do you mean specifically by "SAMD21 M0 board". We have tested the code on Arduino Zero, Arduino M0 Pro, Adafruit Feather M0 Basic, Adafruit Feather M0 BLE, Adafruit Feather M0 Express, Adafruit Circuit Playground Express all based on the SAMD21 processor and none of them needed the modification that you suggested. By the way these were all using the latest Arduino.cc IDE. What were you using to compile?

@ckaraviotis
Copy link
Author

This was using the Arduino M0 (not pro), with the latest version of the Arduino IDE, 1.8.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants