It is difficult to provide you a working sample, because the NUCLEO-F413ZH board does not contain a display... Maybe the best starting point is the STM32F407 build environment, that contains a couple of display drivers.
In principle, you need to adapt the different files of the subdirectory /BoardConfig to your controller, pin layout, timings, touch driver, display driver,...
In any case, it might be helpful for you, to start first with the recommended environment and try to make a porting to your dedicated controller / display solution in a second step.