Controlling PWM from UI with TouchGFX
I want to control a servo motor with the PWM and I want to have a slider on the GUI to control the position of the servo motor,
So I created a TouchGFX project added the slider and the intraction to a virtual function and I generated the code
I opened the project in the STM32CubeIDE folder and I configured the pin
and I created a header and a source file to develop all the necessary functions to control the servo moto (ie: Init, update of frequency...)
When I go back to the TouchGFX Designer to upload the code, I this error that the file is not found
TouchGFX/gui/src/screen1_screen/Screen1View.cpp:4:10: fatal error: PWMSer.h: No such file or directory
#include "PWMSer.h"
^~~~~~~~~~
compilation terminated.
my question : how to properly add folders and source files to such project ? and if I am doing is the wrong way please show me the correct way to do it.
