1
Discussion - EVE / FT812 EVE2 Drawing in a Loop (NHD-5.0-800480FT-CTXL-T)
« on: February 13, 2020, 03:27:37 PM »
I’m using a NHD-5.0-800480FT-CTXL-T display from New Haven. It features the FT812 EVE2 chipset. I am interfacing with the LCD via an Arduino Due and the Arduino shield provided by New Haven.
I am struggling with some of the drawing primitives when I try to operate them within a loop function. Basically, what I want to do is draw rectangles at different points on the screen in different colors within a loop function.
I have managed to draw singular rectangles at different points on the screen in different colors – but only one at a time – a screen clear is necessary for it to function correctly.
If I don’t clear the screen each time before trying to draw another rectangle in the loop – I get vertical bars that appear on the screen not multiple different rectangles.
I attached a .txt file which shows the code I am referencing. I thought perhaps the “append” command would help but I don’t have a static part of the screen so it didn’t seem to work.
Any help or suggestion you can provide would be greatly appreciated. Thank you
I am struggling with some of the drawing primitives when I try to operate them within a loop function. Basically, what I want to do is draw rectangles at different points on the screen in different colors within a loop function.
I have managed to draw singular rectangles at different points on the screen in different colors – but only one at a time – a screen clear is necessary for it to function correctly.
If I don’t clear the screen each time before trying to draw another rectangle in the loop – I get vertical bars that appear on the screen not multiple different rectangles.
I attached a .txt file which shows the code I am referencing. I thought perhaps the “append” command would help but I don’t have a static part of the screen so it didn’t seem to work.
Any help or suggestion you can provide would be greatly appreciated. Thank you