Approved content

The content below is provided by a partner.

microbit-foundation/pxt-sound-level-db 0.1.6 GitHub

sound level (dB) block

Block Usage

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.

Use as Extension

This repository can be added as an extension in MakeCode.

Metadata (used for search, rendering)

Sound Level in decibels (dB)=github:microbit-foundation/pxt-sound-level-db#v0.1.6