10 years, 6 months ago.

Analog Out on Nucleo F030R8

The pinout diagram shows PA_4 is analog out, but the program returns an error (AnalogOut is undefined...)

Is it definitely compatible or is my code wrong?

#include "mbed.h"

AnalogOut Aout(PA_4);

int main()
{
    while(1) {
        Aout = 0.25;
    }
}
Be the first to answer this question.