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

Error setting analog reference for Tiny-2 #1148

Open
EclipseBoom opened this issue Oct 4, 2024 · 0 comments
Open

Error setting analog reference for Tiny-2 #1148

EclipseBoom opened this issue Oct 4, 2024 · 0 comments

Comments

@EclipseBoom
Copy link

Using an Tiny826 chip and the latest core version on Arduino 2.3.3

When setting the analogReference I sometimes get a compilation error "Implicit Definition" or "Undefined symbol" i.e.

analogReference(INTERNAL2V048); // set reference to the desired voltage, and set that as the ADC reference.

Work Around:

By selecting a different family in the IDE Board Menu such as ATTiny3227... and then reselecting the correct family and chip. The compile will work properly and will continue to work properly. Seems like the correct analogReference option set is not being set properly the first time.

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

1 participant