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

Make frequency selection work at runtime, by providing a setRegion method #35

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Jon-Bright
Copy link

This increases the size of the compiled sketch by 160 bytes, but that seems like a reasonable price to pay for runtime configuration of the region. The previous method, #define-ing a frequency in the sketch, has no effect because that same #define is not present when the library is compiled.

This option is my preferred option to fix this, in contrast with the PR just sent.

This option maintains compatibility with all code that currently works by keeping the default as US902.

…thod.

This increases the size of the compiled sketch by 160 bytes, but that seems
like a reasonable price to pay for runtime configuration of the region.
Without this, #define-ing a frequency in the sketch has no effect, because
that same #define is not present when the library is compiled.
@Jon-Bright
Copy link
Author

Here's the other, less-preferred option

@brentru
Copy link
Member

brentru commented Nov 23, 2020

@Jon-Bright Could you please add to the example, showing how to use this PR?

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

Successfully merging this pull request may close these issues.

2 participants