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.
- open https://makecode.microbit.org
- click on New Project
- click on Extensions under the gearwheel menu
- search for Sound Level in decibels and import
- for PXT/