Hello,
I'm using BBC microbit v2 and I noticed that the analogRead function always gave us 0 (trying to read from a microphone).
In the file wiring_analog_nRF52.c, in the function analogRead , the variable is set to 0 when initialized.
The solution is to replace the line 109 "int16_t value = 0;" by "int16_t value;"
Then, it solves this issue.
Maybe I should have proposed a PR, but I'm not yet comfortable with that.
Thanks anyway for this library, because sandeepmistry/arduino-nRF5 doesn't support BLE for BBC microbit v2 and you do with NimBLE.
Hello,
I'm using BBC microbit v2 and I noticed that the analogRead function always gave us 0 (trying to read from a microphone).
In the file wiring_analog_nRF52.c, in the function analogRead , the variable is set to 0 when initialized.
The solution is to replace the line 109 "int16_t value = 0;" by "int16_t value;"
Then, it solves this issue.
Maybe I should have proposed a PR, but I'm not yet comfortable with that.
Thanks anyway for this library, because sandeepmistry/arduino-nRF5 doesn't support BLE for BBC microbit v2 and you do with NimBLE.