Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
5 years ago.
student
Good morning family please in need help, am new in Bluetooth low energy but , am working on a project which I need to vary pwm signal with Nucleo F401RE and x cube ble 1. I will be happy if somebody can help me
1 Answer
5 years ago.
Hi,
Start looking board description and select pins for PWM: https://os.mbed.com/platforms/ST-Nucleo-F401RE/ Then look at this PWM example: https://os.mbed.com/docs/mbed-os/v5.14/apis/pwmout.html#pwmout-hello-world The example have PWM output LED1 PwmOut led(LED1); You can use any your board PWM pins (PA_0, PA_1, PB_1 ...) PwmOut pwmout(PA_0);
Regards, Pekka