Open VictorDuma-zz opened 6 years ago
So, I guess, light and temperature sensors use one ADC and something wrong with switching between them.
@VictorDuma What version of mbed did you compile? It seems like mbedos has some considerable changes compared to mbed-classic:
"libraries":[ { "name":"codal-core", "url":"https://github.com/lancaster-university/codal-core", "branch":"master", "type":"git" }, { "name": "codal-mbedos", "url": "https://github.com/lancaster-university/codal-mbedos", "branch": "master", "type": "git" } default settings for BRAINPAD
There are temperature and light sensors on the BrainPad using AnalogSensor class. It is good values when I use only temperature(I mean, LightSensor doesn't init). But, when both are inited, temperature value changes on the light. https://github.com/VictorDuma/codal-brainpad-1/blob/sensors/samples/main.cpp
I checked this case in other environments and it works well.