-
Notifications
You must be signed in to change notification settings - Fork 31
codal_app: Update codal-microbit-v2 to v0.2.43. #132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Also adds the MICROBIT_USB_SERIAL_WAKE flag to the CODAL config to enable wake up from UART. Changes to codal-microbit-v2: - deepSleep() with no wake targets will now actually deep sleep. - Serial ports can now be used to wake the board from deep sleep. - New configuration flag MICROBIT_USB_SERIAL_WAKE can now be set to configure the board to wake on serial input. Changes to codal-core: - Fixed spurious mic activation due to overlapping device IDs between CodalComponent and MicroBitCompat.
To match the same floor as the previous implementatio. As the new implementation is more sensitive to lower volume levels and in "generic quiet room" it gave much higher values, increasing the LEVEL_DETECTOR_SPL_8BIT_000_POINT config value will match the previous version. As discussed in lancaster-university/codal-microbit-v2#236 Can be removed with the next CODAL tag 0.2.44, which will change the default value of LEVEL_DETECTOR_SPL_8BIT_000_POINT.
Added a new commit set LEVEL_DETECTOR_SPL_8BIT_000_POINT to 52.0 dB. This is to match the same floor as the previous implementation, as the new version is more sensitive to lower volume levels. This change can be removed with the next CODAL tag 0.2.44, which will change the default value of LEVEL_DETECTOR_SPL_8BIT_000_POINT to 52. But in the meantime adding this here as a representation of the MicroPython build I've been using for testing. |
This is good, thank you! I tested |
codal-core has set the default min and max values to 35 and 100 in: lancaster-university/codal-core@d376f1a MakeCode uses 52 to 120, and MicroPython 52 to 100: - https://github.com/microsoft/pxt-microbit/blob/v7.1.31/libs/microphone/microphone.cpp#L8-L9 - microbit-foundation/micropython-microbit-v2#132 (comment) With the current SoundLevelSPL we don't get values much larger than 100 dB, so it makes sense to make the micro:bit target default to 100 instead of 120. This was originally intended to go in codal-microbit-v2 v0.2.44, but it we never got around to it.
codal-core has set the default min and max values to 35 and 100 in: lancaster-university/codal-core@d376f1a MakeCode uses 52 to 120, and MicroPython 52 to 100: - https://github.com/microsoft/pxt-microbit/blob/v7.1.31/libs/microphone/microphone.cpp#L8-L9 - microbit-foundation/micropython-microbit-v2#132 (comment) With the current SoundLevelSPL we don't get values much larger than 100 dB, so it makes sense to make the micro:bit target default to 100 instead of 120. This was originally intended to go in codal-microbit-v2 v0.2.44, but it we never got around to it.
codal-core has set the default min and max values to 35 and 100 in: lancaster-university/codal-core@d376f1a MakeCode uses 52 to 120, and MicroPython 52 to 100: - https://github.com/microsoft/pxt-microbit/blob/v7.1.31/libs/microphone/microphone.cpp#L8-L9 - microbit-foundation/micropython-microbit-v2#132 (comment) With the current SoundLevelSPL we don't get values much larger than 100 dB, so it makes sense to make the micro:bit target default to 100 instead of 120. This was originally intended to go in codal-microbit-v2 v0.2.44, but it we never got around to it.
…#481) codal-core has set the default min and max values to 35 and 100 in: lancaster-university/codal-core@d376f1a MakeCode uses 52 to 120, and MicroPython 52 to 100: - https://github.com/microsoft/pxt-microbit/blob/v7.1.31/libs/microphone/microphone.cpp#L8-L9 - microbit-foundation/micropython-microbit-v2#132 (comment) With the current SoundLevelSPL we don't get values much larger than 100 dB, so it makes sense to make the micro:bit target default to 100 instead of 120. This was originally intended to go in codal-microbit-v2 v0.2.44, but it we never got around to it.
Also adds the MICROBIT_USB_SERIAL_WAKE flag to the CODAL config to enable wake up from UART.
Changes to codal-microbit-v2:
Changes to codal-core:
@dpgeorge This is what I've been using for the latest MicroPython testing. Feel free to close the PR if you prefer to update the CODAL tag differently or with other code changes.