Added the heapless crate as a dependency to use the ADC inside of an Arc that can be cloned and used by multiple structs. This makes it possible for 2 different structs, like the light sensor array and the future battery sensor, to use the ADC1.
This pull request also adds a small example of how to use Arc with the ADC.
Added the
heapless
crate as a dependency to use the ADC inside of anArc
that can be cloned and used by multiple structs. This makes it possible for 2 different structs, like the light sensor array and the future battery sensor, to use the ADC1.This pull request also adds a small example of how to use
Arc
with the ADC.