giuliomoro I don't know if I understand you correctly. I plug the mic to pin7 of the caplet (J11-pin0 and J10-pin7 are suspended), and use ananlog(context, n/gAudioFramesPerAnalogFrame,0) to read the sound.

the render() code is:
int gAudioperAnalog = context->audioFrames/context->analogFrames;
void render(BelaContext* context, void* userData)
{
for(unsigned int n = 0; n < context->audioFrames; ++n)
{
gPhase += 2.0 * M_PI * gFrequency * gInverseSampleRate;
if (gPhase >= 2.0 * M_PI)
gPhase -= 2.0 * M_PI;
float out = gAmplitude * sin(gPhase);
for (unsigned int ch = 0; ch < context->audioOutChannels; ch++){
audioWrite(context, n, ch, out);
}
if((n%2) == 0){
input = analogRead(context, n/gAudioFramesPerAnalogFrame, 0);
}
scope.log(input);
}
}
There is no change:

Is there something wrong with my understanding?