Page 1 of 1

Image Upside-down in SLP2

Posted: Fri Oct 08, 2021 8:09 pm
by thismarty
Hi.

I've built my Stereopi rig properly and it works fine, displaying a rightside-up image on the 2" TFT screen.

However, when I log into it on my WLAN via the SLP2 software, the image in SLP2 is upside-down. The option to flip the image in SLP2 doesn't help as it flips both the SLP2 and TFT screen images.

Any suggestions? :-)

Re: Image Upside-down in SLP2

Posted: Fri Oct 08, 2021 8:42 pm
by Realizator
Hi thismarty,
TFT screen is actually mirroring the HDMI screen. We are using fbcp-ili9341 library for this, and this library is extremely "unfriendly" for outside parameters. To change any settings we have to fix the source code and recompile it.

When I need to rotate the screen relative to cameras, I use this simple trick: https://youtu.be/PPkERBPHNAg
You see, we are experimenting with a lot of cameras, and a lot of them have opposite "top" and "bottom" sensor orientations. This is not an issue for the video recording, as we can just use the "flip video" checkbox in the admin panel. But the image on the screen is rotated at the same time, so it's easier to rotate the plate with cameras.

BTW, maybe we'll compile two versions of this library with default and 180-degree rotated image, and do this screen rotation software way.

Re: Image Upside-down in SLP2

Posted: Fri Oct 08, 2021 10:50 pm
by thismarty
Hey, Realizator!

Yup, I've done the rotation thing for now too. ;-)

I wasn't sure though if it was recommended to diverge from the construction notes like that as a long-term solution. Good to know it's safe to do so!

As always, thanks!

Re: Image Upside-down in SLP2

Posted: Sat Oct 09, 2021 6:06 pm
by ch0rtle
We just flipped the screen 180 and wired the TFT through the other slot. Seems fine.

Re: Image Upside-down in SLP2

Posted: Wed Oct 13, 2021 8:35 am
by Realizator
thismarty and ch0rtle thank you for this catch!
I updated the Wiki about the screen assembly with both tips!

Re: Image Upside-down in SLP2

Posted: Thu Oct 21, 2021 9:27 pm
by dnaman
The rotation thing at https://youtu.be/PPkERBPHNAg didn't worked for me (it changed things around but still didn't fix it).

For reference, my assembly looks like the one shown in Stereopi-v2-camera-kit-13-5.jpg and Stereopi-v2-camera-kit-13-5.jpg of the "StereoPi V2 Camera Kit Guide". Mechanically flipping the tft screen on that as described by ch0rtle seems to have fixed all problems for me. (I may have V and H flips checked too ... I can't verify at the moment)