R61581 mirroring image/touch
Posted: Fri Mar 03, 2017 1:46 am
I just got the new megaloggerHD and I'm trying to port over code from my old kit 3. Most things work fine out of the box but my old touch screen code (using Utouch and now URTouch) and my UTFT_SdRaw image loader is doing everything horizontally mirrored. I noticed the R61581.cpp file does some weird shifting when getting the x and y values and that the SetXY has the landscape orientation code commented out. This seems to work for most things.
I can get away with using the in built touch sensing but is there a way to fix the code so that the images load correctly?
UTFT_SdRaw myFiles(&lcd);
int result = myFiles.load(0, 0, ScreenWidth, ScreenHeight, "BG.raw");
I can get away with using the in built touch sensing but is there a way to fix the code so that the images load correctly?
UTFT_SdRaw myFiles(&lcd);
int result = myFiles.load(0, 0, ScreenWidth, ScreenHeight, "BG.raw");