Cannot draw a full-screen line with a TouchGFX-generated project
- October 26, 2023
- 6 replies
- 5476 views
For an STM32H747i-DISCO board (800x480 lcd), I have used TouchGFX Designer v4.22.1 to create a very simple project with a box and static graph. The white box was maximized to the full screen. The static graph was untouched.
I imported this project into CubeIDE v1.13.2.
I want to be able to draw 799 horizontal line segments on the lcd. I am getting close but cannot get the resulting line to reach across the entire screen. It gets about 15% across and then stops.
The starting point of this short line can be moved to the right by adding a constant to 'segmentCounter' in graph1.addDataPoint( segmentCounter , 240 );, but the length of the line doesn't change.
Any hints to what I am doing wrong would be appreciated. The attached code should draw 799 one-pixel line line segments. Attached are Screen1View.cpp and .hpp, plus a picture of the display.
