xperiments / p1touch

Bambulab P1 Series Touch Screen
145 stars 11 forks source link

Allow changing screen orientation #5

Closed andypiper closed 1 year ago

andypiper commented 1 year ago

I found a great case for the ESP32-2432S028R which would be perfect for this project! Unfortunately, it expects the screen to be oriented with the USB cable at the top left, instead of the bottom right.

Could a configuration option be added to rotate the screen by 180 degrees?

ZachWSays commented 1 year ago

Watch the video on the printables page for that, seems that it can be slid in either way. Should be able to just do it upside down.

andypiper commented 1 year ago

Yes, I do have it set that way currently, but it means that a couple of minor things are aligned differently (SD slot on the bottom, which is not currently used in p1touch (unless that's the secret of the missing config file in #4 - I think not as that refers to vfs / LittleFS rather than SD, but I could be mistaken). Otherwise, yes, it remains an excellent option either way up, and I'm being needy suggesting the screen rotation :-)

xperiments commented 1 year ago

You can refer to the printable one Lee published.. but not mean to be final as I am moving the design to be on top and be the base for the next versions

On Wed, 9 Aug 2023, 15:14 Andy Piper, @.***> wrote:

Yes, I do have it set that way currently, but it means that a couple of minor things are aligned differently (SD slot on the bottom, which is not currently used in p1touch (unless that's the secret of the missing config file in #4 https://github.com/xperiments/p1touch/issues/4 - I think not as that refers to vfs / LittleFS rather than SD, but I could be mistaken). Otherwise, yes, it remains an excellent option either way up, and I'm being needy suggesting the screen rotation :-)

— Reply to this email directly, view it on GitHub https://github.com/xperiments/p1touch/issues/5#issuecomment-1671306379, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADF7LONZJRWQULQGNOYXTDXUOEL7ANCNFSM6AAAAAA3J2JYGQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

smford commented 1 year ago

I would like to voice my request for the orientation of the screen to be flippable to allow the usb cable to exit on the left hand side. The intended mounting position, including cases mounting hardward, and such for my P1Touch won't allow for the current right hand side usb port. I can't really do much about it in my situation.

It looks to be straight forward to: https://docs.lvgl.io/8/porting/display.html#:~:text=If%20you%20select%20software%20rotation,logic%20in%20your%20flush_cb%20callback.

fdebeer commented 1 year ago

use a longer usb-cable, or use the wires that come with the board. solder a connector to these wires to feed the board. on facebook there are examples how to do this

xperiments commented 1 year ago

LCD Flip is added for next version

smford commented 1 year ago

use a longer usb-cable, or use the wires that come with the board. solder a connector to these wires to feed the board. on facebook there are examples how to do this

What about other people who don't have this level of skill or tools?

Wouldn't it simply be simply easier, to use the most trivial method of doing it via software, so that it solves the problem for everyone once and for all?

Which is a button that toggles the lvgl orientation within the settings menu, and saves it to config.

Thank you @xperiments