lancaster-university / codal-microbit-v2

CODAL target for the micro:bit v2.x series of devices
MIT License
41 stars 50 forks source link

StreamRecorded with latest CODAL contains pulses at regular intervals #342

Closed microbit-carlos closed 1 year ago

microbit-carlos commented 1 year ago

With the latest CODAL StreamRecorded raw data has peaks every ~23ms.

Bottom is a build with the latest CODAL, top is using the StreamRecorder hex from:

image
#include "MicroBit.h"
#include "SerialStreamer.h"

MicroBit uBit;

int main() {
    uBit.init();

    SerialStreamer *streamer = new SerialStreamer(uBit.audio.processor->output, SERIAL_STREAM_MODE_BINARY);
    uBit.audio.requestActivation();
    uBit.audio.activateMic();

    while (true) {
        uBit.sleep(1000);
    }
}

MICROBIT.hex.zip

microbit-carlos commented 1 year ago

PR: