Open microbit-mark opened 3 years ago
@abchatra can you take a look at this one and try and reproduce?
Does this not reproduce in python when writing to serial? Does this reproduce if we don't write to serial but just displayed on the screen?
I will take a look.
@microbit-carlos do you think this is still an issue?
This was fixed in CODAL in:
As part of that MakeCode should have been updated to use uBit.audio.levelSPL->setUnit(LEVEL_DETECTOR_SPL_8BIT)
as described in https://github.com/lancaster-university/codal-microbit-v2/issues/225#issuecomment-1241023894, which I think it might not have been implemented yet:
https://github.com/microsoft/pxt-microbit/blob/v6.1.8/libs/microphone/microphone.cpp
Writing the value of sound level to serial, the loudest sound level returned seems to be between 191-195. The returned level should be up to 255
https://makecode.microbit.org/_LMvK17UKMaeA
Does not reproduce in MicroPython, so I assume this is MakeCode related, not CODAL.