aindustriosa / RustyBugA

Firmware for the MightyBugA line follower done in Rust programming language
MIT License
5 stars 3 forks source link

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

Closed JatoMixo closed 4 months ago

JatoMixo commented 4 months ago

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.