from microbit import *
while True:
sound_level = microphone.sound_level()
brightness = min(sound_level // 28, 9)
for x in range(5):
for y in range(5):
display.set_pixel(x, y, brightness)
sleep(100)
Copyright ⓒ TECH79 All right reserved