Closed as not planned
Description
Using the latest version (at the time of writing) of the recording & playback branch: 0b06914
Hex: https://github.com/microbit-foundation/micropython-microbit-v2/actions/runs/8416237764?pr=163
Takes less than 9min:
from microbit import *
import radio
PACKET_SIZE = 128
def radio_sender():
my_audio = audio.AudioFrame(duration=4000)
while True:
microphone.record_into(my_audio)
audio_mv = memoryview(my_audio)
for i in range(0, len(audio_mv), PACKET_SIZE):
radio.send_bytes(audio_mv[i:i+PACKET_SIZE])
def main():
radio.on()
radio.config(length=PACKET_SIZE, queue=64)
display.show("S")
radio_sender()
if __name__ == "__main__":
main()
CODAL panic error 030 is a DEVICE_HEAP_ERROR
.
It could be an issue from the CODAL side, but it'd be good to try to confirm that first.