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.
9 years, 11 months ago.
how to use it?
Hello. I imported the library, created main.cpp My code for test.
#include "mbed.h" PwmOut pwmled(PA_4); int main() { pwmled.period(0.01); while (1) { for(float p = 0.0f; p < 1.0f; p += 0.1f) { pwmled = p; wait(0.1); } } }
But compiler write: Error: Cannot open source input file "device.h": No such file or directory in "mbed-STM32F030F4/api/platform.h", Line: 21, Col: 20
What am I doing wrong?
Question relating to:
1 Answer
9 years, 11 months ago.
If you haven't already, right hand click on the Mbed library and select update.