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

Changes required to work on Arduino Leonardo #1

Merged
merged 2 commits into from Jun 13, 2016

Conversation

Projects
None yet
2 participants
@phardy
Contributor

phardy commented Jun 13, 2016

Leonardo boards have a very different setup for serial communication, and so use a different class for the Serial objects (Serial_ instead of HardwareSerial). Both of these classes inherit from Stream, so rather than delve in to hardware-specific preprocessor work, I've just changed the signature to accept Stream objects.

I've verified the example sketches work with this change on Leonardo and Uno compatible hardware. I'm pretty sure it'll also work with SoftwareSerial, but haven't done more than compile an example sketch.

@phardy phardy changed the title from Change readFromSerial to work for Arduino Leonardo to Changes required to work on Arduino Leonardo Jun 13, 2016

@pvizeli pvizeli merged commit 2acfc56 into pvizeli:master Jun 13, 2016

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment