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

Allow the ADC1 to be shared by multiple structs or methods #42

Closed
wants to merge 2 commits into from

Conversation

JatoMixo
Copy link
Collaborator

The LightSensorArray struct now uses a RefCell to the ADC1 instead of borrowing its value, which can allow us to use it for other purposes such as the battery sensor.

JatoMixo added 2 commits May 22, 2024 19:16
now it's possible to use the adc1 in different structs and methods
because the light sensor array no longer borrows its value, now it only
takes a RefCell to it
@punkto punkto closed this May 22, 2024
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