Graphics X offset (and possible 1 pixel y) when run on M4

Hi Guys,

There seems to be an issue with any code running on the M4 talking to the display.

I first noticed it with LVGL running on the M4, but it seems to effect everything.

You can replicate it with this code:

#include "Arduino_GigaDisplay_GFX.h"
#include "RPC.h"

GigaDisplay_GFX display;

void setup() 
{
  RPC.begin();
 
}

void loop() 
{
  display.fillScreen(0);
  display.fillRect(0,0,100,100, 0xffff);
}

IMG_1500.HEIC

I have opened an issue here: GIGA Display - Graphics offset when running on M4. · Issue #743 · arduino/ArduinoCore-mbed · GitHub

It can be made to work.

I observe a similar problem. I think it has something to do with RPC, because I run a simple code with Giga Display and LVGL lib on the main M7 core and I also see offset, when RPC is used - correct positioning, when RPC not used.

BobTheDog, comment out
RPC.begin();
and you will see that there is no offset of your rectangle.

1 Like