ARMmbed / ci-test-shield

mbed CI Test Shield
Apache License 2.0
9 stars 36 forks source link

tests-api-analogin : value read max value limitation #83

Open jeromecoutant opened 5 years ago

jeromecoutant commented 5 years ago

Hi

Here is tests-api-analogin scenario : // As you turn more pins on the voltage on the ain pin will go up.

Note that measurement value is between 0 and VREF+, i.e. 3.3 V in most of ST boards. My issue is with DISCO_L496AG board : max value is 2.5V

https://github.com/ARMmbed/ci-test-shield/blob/befdcc2a4ea758122a0d4326c8893b062e79bab9/TESTS/API/AnalogIn/AnalogIn.cpp#L35

Is it possible to limit the BusOut with 4 pins ? Test remains quite the same, and it seems that 4 pins, turned on, is OK (below 2.5V) ?

Thx

Reference: https://github.com/ARMmbed/mbed-os/pull/8168