8000 This recording programme panics with CODAL error 030 · Issue #191 · microbit-foundation/micropython-microbit-v2 · GitHub
[go: up one dir, main page]

Skip to content
This recording programme panics with CODAL error 030 #191
Closed as not planned
@microbit-carlos

Description

@microbit-carlos

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0