White Screen error with STM32F429I-DISC1
- September 26, 2023
- 3 replies
- 3384 views
Hi all,
I am working on a project that involves the STM32F429I-DISC1 (The blue one) with TouchGFX. I am trying to control two on screen buttons labeled ON and OFF that turn on pin G13 on the microcontroller board. I first used TouchGFX to create the screen elements, then I used CubeMX to make GPIOG Pin 13 an output, then I use CubeIDE to add in code. When I add in the required code and run the debugger (green play button) I end up getting a white screen on the LCD. I am not sure what I am doing wrong. I have attached pictures and the code that I added in. Any help is appreciated. I am also following this tutorial: https://www.youtube.com/watch?v=hrx6iqOaGvY&t=613s
mainView.cpp:
mainView.hpp:
#ifndef MAINVIEW_HPP
#define MAINVIEW_HPP
#include <gui_generated/main_screen/mainViewBase.hpp>
#include <gui/main_screen/mainPresenter.hpp>
class mainView : public mainViewBase
{
public:
mainView();
virtual ~mainView() {}
virtual void setupScreen();
virtual void tearDownScreen();
virtual void LED_ON();
virtual void LED_OFF();
protected:
};
#endif // MAINVIEW_HPP