Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display Size doesn't fit #7

Open
merryprankster02 opened this issue Jan 28, 2020 · 4 comments
Open

Display Size doesn't fit #7

merryprankster02 opened this issue Jan 28, 2020 · 4 comments

Comments

@merryprankster02
Copy link

I went with a different display then the one you listed and while everything works great now from a code perspective, if i have the pi connected to a monitor or a tv when i plug it into the small screen/case that i had intended run this on, the display is too large and you can only see the direction one way and the otherway is cut off. I went into raspi-config and set the resolution to 800 x 480 which is what the manufacturer lists. This seems to work fine for the regular desktop but not the subway time output. Is there an easy way to resize the output so that it will fit this screen correctly or would it make more sense for me to get a different screen and use this one for a different project down the road. Any assistance will definitely help and i apologize for asking you my previous question about tkinter since it would have been irrelevant if i had atually been using the raspian os instead of a basic ubuntu installation.

@lightalan
Copy link
Owner

lightalan commented Jan 28, 2020 via email

@merryprankster02
Copy link
Author

merryprankster02 commented Jan 28, 2020

Ok, i will give that a shot a little later on this evening when i have some more time to play around with it. Thanks again for the quick reply. I will definitely try forcing the resolution in the code and see if that fixes it. Do you know what the resolution was of the screen that you used out of curiosity? This is the one that i went with https://www.amazon.com/gp/product/B07S82CN57?ref=ppx_pt2_dt_b_prod_image

As per its instructions that came with the screen, i installed a new driver prior to plugging it in and ran the following commands:

sudo rm rf LCD-show
git clone https://github.com/goodtft/LCD-show.git
chmod _R 755 LCD-show
cd LCS-show/
sudo ./LCS5-show

which then forced it to reboot. It was at this point that I noticed that there was a little tiny switch on the back of the board for the screen which I hadnt noticed and that was why the screen was black. Once i turned it on is when i noticed that it wasnt sized correctly so i rebooted again went into raspi-config and manually set the resolution there. Like i said this fixed the native desktop but the output is still off.

I will let you know what happens when i hard code in the resolution.

@lightalan
Copy link
Owner

lightalan commented Jan 28, 2020 via email

@merryprankster02
Copy link
Author

merryprankster02 commented Jan 28, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants