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

How to use the second serial? #12

Open
Drachenkaetzchen opened this issue Oct 1, 2013 · 3 comments
Open

How to use the second serial? #12

Drachenkaetzchen opened this issue Oct 1, 2013 · 3 comments

Comments

@Drachenkaetzchen
Copy link
Contributor

The docs unfortunately don't tell how to use the second serial port (if available), or I have missed it in the docs.

@Drachenkaetzchen
Copy link
Contributor Author

In fact, one needs to change the defines in https://github.com/billroy/bitlash/blob/master/src/bitlash.h#L267 after adding the atmega variant to the preceding #define.

@Drachenkaetzchen
Copy link
Contributor Author

I've added an additional define in the RaumZeitLabor fork of bitlash; should I open a pull request or is that too specific?

@matthijskooijman
Copy link

I've been working on making bitlash work with arbitrary Stream classes. Once this is merged, you should be able to just do Serial1.begin(115200); initBitlash(Serial1); to make bitlash work with the second serial port. Would that solve your issue?

See also #20.

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