Approved content
The content below is provided by a partner.
This extension adds one block to the “Input … more” section.
The ||input.soundLevelDb||
block returns the level of sound detected by the microphone in decibel (dB) units.
basic.showNumber(input.soundLevelDb())
This block is compatible with micr:bit V2 only, if the block is used with a micro:bit V1 board the 927 error will scroll on the screen.
This repository can be added as an extension in MakeCode.
makeCodeRender(“{{ site.makecode.home_url }}”, “{{ site.github.owner_name }}/{{ site.github.repository_name }}”);
Sound Level in decibels (dB)=github:microbit-foundation/pxt-sound-level-db#v0.1.6