It would be great to expose (at least) the following options to users of the ADC:
(discussed in #318 )
Select the supply rail as input to the ADC
Select the different reference voltage options
It looks like this would be a departure from the mbed AnalogIn which doesn't appear to have this option - but there's already some direct ADC control in MicroBitPin.cpp
For the first point, as we currently really only expose the ADC via the pins, this would be a bit odd - so certainly worth considering a more fixed-use-case solution to measuring the supply voltage (IE like https://os.mbed.com/teams/microbit/code/microbit-battery-test/). For the second it feels like we should be able to work by extending the existing API.
@dpgeorge - not sure if you watch DAL issues but I think this one is of some interest
It would be great to expose (at least) the following options to users of the ADC:
(discussed in #318 )
It looks like this would be a departure from the mbed
AnalogIn
which doesn't appear to have this option - but there's already some direct ADC control in MicroBitPin.cppFor the first point, as we currently really only expose the ADC via the pins, this would be a bit odd - so certainly worth considering a more fixed-use-case solution to measuring the supply voltage (IE like https://os.mbed.com/teams/microbit/code/microbit-battery-test/). For the second it feels like we should be able to work by extending the existing API.
@dpgeorge - not sure if you watch DAL issues but I think this one is of some interest